From 839dfbba95996c0921846fed109046c8b90d679d Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 19 Jul 2010 04:49:29 +0000 Subject: Register Tuscany context listener to ensure the runtime is initialized when the webapp starts. Print exception stack traces. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@965354 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/samples/launcher-shell/src/main/java/sample/Shell.java | 1 + .../trunk/samples/launcher-shell/src/main/webapp/WEB-INF/web.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sca-java-2.x/trunk/samples/launcher-shell/src/main/java/sample/Shell.java b/sca-java-2.x/trunk/samples/launcher-shell/src/main/java/sample/Shell.java index 3ffff389c8..7aecc8a439 100644 --- a/sca-java-2.x/trunk/samples/launcher-shell/src/main/java/sample/Shell.java +++ b/sca-java-2.x/trunk/samples/launcher-shell/src/main/java/sample/Shell.java @@ -150,6 +150,7 @@ public class Shell { try { return func.call(); } catch (Exception e) { + e.printStackTrace(); return singletonList(e); } } diff --git a/sca-java-2.x/trunk/samples/launcher-shell/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/samples/launcher-shell/src/main/webapp/WEB-INF/web.xml index 661ce366c5..ac1ad1cc8e 100644 --- a/sca-java-2.x/trunk/samples/launcher-shell/src/main/webapp/WEB-INF/web.xml +++ b/sca-java-2.x/trunk/samples/launcher-shell/src/main/webapp/WEB-INF/web.xml @@ -20,6 +20,8 @@ scashell + org.apache.tuscany.sca.host.webapp.TuscanyContextListener + tuscany org.apache.tuscany.sca.host.webapp.TuscanyServletFilter -- cgit v1.2.3