I am trying to set up a new project using ajax4jsf+trinidad and having problems. I have
followed this doc:
http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail
I am getting this error:
| 17:12:13,846 INFO [StartupServletContextListener] Serialization provider : class
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
| 17:12:13,878 ERROR [STDERR] Mar 1, 2007 5:12:13 PM
org.apache.myfaces.trinidad.webapp.TrinidadFilter init
| SEVERE: null
| java.lang.ClassNotFoundException:
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl
| at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
| at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
| at org.apache.myfaces.trinidad.webapp.TrinidadFilter.init(TrinidadFilter.java:52)
| at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
| at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
| at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
|
I added the trinidad and a4j-trinidad jar to WEB-INF/lib (and added them to the build.xml
to be added to the ear) -- Is that right???
this is my web.xml:
| <?xml version="1.0" ?>
| <web-app
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"
| version="2.4">
|
| <!-- Ajax4jsf (must come first!) -->
| <!-- ************************ AJAX4JSF Filter ****************************
-->
| <!-- If you have other filters declared in the web.xml, be sure that Ajax4jsf
Filter is declared before the others. -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| <init-param>
| <param-name>forceparser</param-name>
| <param-value>false</param-value>
| </init-param>
| </filter>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
|
<param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
| </context-param>
|
| <!-- ************************ Trinidad Filter ****************************
-->
| <filter>
| <filter-name>Trinidad</filter-name>
|
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Trinidad</filter-name>
| <!--<servlet-name>Faces Servlet</servlet-name>-->
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <!-- Seam -->
|
| <listener>
|
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <servlet>
| <servlet-name>Seam Resource Servlet</servlet-name>
|
<servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces -->
|
| <listener>
|
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <!-- Facelets development mode (disable in production) -->
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <!-- JSF -->
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
|
| <!-- ************************ Trinidad resources servlet
**************************** -->
| <servlet>
| <servlet-name>Trinidad Resources</servlet-name>
|
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
| </servlet>
|
| <!-- This cannot be configured currently -->
| <servlet-mapping>
| <servlet-name>Trinidad Resources</servlet-name>
| <url-pattern>/adf/*</url-pattern>
| </servlet-mapping>
|
| <security-constraint>
| <display-name>Restrict raw XHTML Documents</display-name>
| <web-resource-collection>
| <web-resource-name>XHTML</web-resource-name>
| <url-pattern>*.xhtml</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <role-name>NONE</role-name>
| </auth-constraint>
| </security-constraint>
|
| </web-app>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024512#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...