summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF')
-rw-r--r--java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.composite4
-rw-r--r--java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.xml10
2 files changed, 12 insertions, 2 deletions
diff --git a/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.composite b/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.composite
index 7e2ca0a158..56ed55b2d5 100644
--- a/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.composite
+++ b/java/sca/samples/webapps/helloworld-jsf/src/main/webapp/WEB-INF/web.composite
@@ -17,8 +17,8 @@
* specific language governing permissions and limitations
* under the License.
-->
-<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200712"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
targetNamespace="http://samples"
name="Helloworld">
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)