summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml b/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml
index 7fd6bd6b6b..41098def30 100644
--- a/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml
+++ b/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml
@@ -24,6 +24,16 @@
<description>MyProject web.xml</description>
+ <!-- The only web.xml change to the MyFaces Helloworld sample is to add
+ the Tuscany listener and annotation processor context parameter -->
+ <listener>
+ <listener-class>org.apache.tuscany.sca.host.webapp.TuscanyContextListener</listener-class>
+ </listener>
+ <context-param>
+ <param-name>org.apache.myfaces.config.annotation.LifecycleProvider</param-name>
+ <param-value>org.apache.tuscany.sca.myfaces.TuscanyAnnotationLifecycleProvider</param-value>
+ </context-param>
+
<!--optional: context-param>
<description>Comma separated list of URIs of (additional) faces config files.
(e.g. /WEB-INF/my-config.xml)