Problem setting up RichFaces with Tomcat 6.0.18
pinny3 Sep 7, 2008 5:25 PMHi there,
I've got a Tomcat 6.0.18 together with JDK 1.5 and 1.6. up and running. Sun's JSF reference implementation with version 1.2. works properly.
Now I tried Richfaces. However, I cannot start the Tomcat Server. I always get the following error:
[...]
07.09.2008 23:08:47 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
07.09.2008 23:08:47 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 463 ms
07.09.2008 23:08:47 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
07.09.2008 23:08:47 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
07.09.2008 23:08:48 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
07.09.2008 23:08:48 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/richfaces'
07.09.2008 23:08:48 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
07.09.2008 23:08:48 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/richfaces] startup failed due to previous errors
07.09.2008 23:08:49 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_09-b02-FCS) for context '/jsfbasics'
[...]
I have the follwing JARs in my /WEB-INF/lib directory:
jbos-faces.jar, 4.2.0.GA
jsf-api.jar, Specification-Vendor: JBoss (http://www.jboss.org/)
Specification-Version: 1.2MR1
jsf-impl.jar, Specification-Vendor: JBoss (http://www.jboss.org/), Specification-Version: 1.2MR1
richfaces-api-3.2.1.GA.jar, 3.2.1.GA
richfaces-impl-3.2.1.GA.jar, 3.2.1.GA
richfaces-ui-3.2.1.GA.jar, 3.2.1.GA
And this is how my web.xml looks like:
<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>a4jEchoText</display-name>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
<!-- Faces Servlet -->
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
I hope there is anybody out there who can help me with this issue. Any help will be appreciated.
Regards,
Christian