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
This commit is contained in:
jsdelfino 2010-07-19 04:49:29 +00:00
parent f59fca36e7
commit 839dfbba95
2 changed files with 3 additions and 0 deletions

View file

@ -150,6 +150,7 @@ public class Shell {
try {
return func.call();
} catch (Exception e) {
e.printStackTrace();
return singletonList(e);
}
}

View file

@ -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>