summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-07-19 04:49:29 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-07-19 04:49:29 +0000
commit839dfbba95996c0921846fed109046c8b90d679d (patch)
tree93e3ab7d7b332ad8a629122d3148d583ea8fea71
parentf59fca36e7538cafbd6032003c7b06d64862a2bf (diff)
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
-rw-r--r--sca-java-2.x/trunk/samples/launcher-shell/src/main/java/sample/Shell.java1
-rw-r--r--sca-java-2.x/trunk/samples/launcher-shell/src/main/webapp/WEB-INF/web.xml2
2 files changed, 3 insertions, 0 deletions
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 @@
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>scashell</display-name>
+ <listener><listener-class>org.apache.tuscany.sca.host.webapp.TuscanyContextListener</listener-class></listener>
+
<filter>
<filter-name>tuscany</filter-name>
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>