Web Application Server Community Edition (WAS CE) is
shipped with a MyFaces JSF implementation. You can choose to enable
or disable the MyFaces JSF module in WAS CE based on the requirements
of your JViews Web applications.
JViews Web applications
can run with the integrated MyFaces implementation. In this case,
you do not need to disable the integrated MyFaces module. However,
when you build JViews Web application .war
files, you must exclude any JSF implementation.
For example, you must not include either jsf-api-1.2_07-b03-FCS.jar or jsf-impl-1.2_07-b03-FCS.jar in your .war
files.
The integrated MyFaces implementation can be disabled
and replaced by a Sun JSF implementation that is included in your
Web application .war
file. WAS CE might
have issues with some specific Sun JSF implementations.
To disable the MyFaces JSF module in
WAS CE:
Log on to the WAS CE administrative
console.
Go to System Modules.
Check the option Expert User.
Stop the following modules:
To deploy a .war file on the WAS CE
server:
(Optional) Create a WEB-INF/geronimo-web.xml deployment plan file with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<web:web-app xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0" xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pers="http://java.sun.com/xml/ns/persistence" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
<dep:environment>
<dep:moduleId>
<dep:groupId>default</dep:groupId>
<dep:artifactId>jsf-framework-code-fragments</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>car</dep:type>
</dep:moduleId>
</dep:environment>
<web:context-root>/jsf-framework-code-fragments</web:context-root>
</web:web-app>
Build the .war file using build.bat in demo folder.
Copy the .war file to the %WASCEDIRECTORY%\deploy folder.
Start the server and wait for WAS CE
to deploy the application.