[jboss-user] [JBoss Seam] - Re: Seam CVS+JBoss 4.2+Trinidad

smithbstl do-not-reply at jboss.com
Wed May 30 14:16:46 EDT 2007


Here is the current version of web.xml modeled after SeamDiscs example....... Still same error

<?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!) -->
  |     
  |    <!-- Don't need Ajax4JSF Filter because seam filter installs it for me-->
  |     <!--
  |     Not used because of Trinidad
  |     <context-param>
  |         <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
  |         <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
  |     </context-param>
  |     -->
  |     <context-param>
  |         <param-name>org.ajax4jsf.SKIN</param-name>
  |         <param-value>blueSky</param-value>
  |     </context-param>    
  | 
  |    <!-- Seam -->
  |  
  |    <!--
  |    <context-param>
  |        <param-name>org.jboss.seam.core.init.debug</param-name>
  |        <param-value>true</param-value>
  |    </context-param> 
  |    -->
  |    <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>
  |    
  |    
  |    <listener>
  |       <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  |    </listener>     
  |     
  |    <!-- Facelets development mode (disable in production) -->
  |    
  |    <context-param>
  |       <param-name>facelets.DEVELOPMENT</param-name>
  |       <param-value>true</param-value>
  |    </context-param>
  |     <context-param>
  |        <param-name>facelets.SKIP_COMMENTS</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>
  |                   
  |    <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>   
  |   
  |    <!-- Trinidad -->
  |    
  |     <context-param>
  |         <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
  |         <!--<param-value>com.sun.facelets.FaceletViewHandler</param-value>-->
  |         <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
  |     </context-param>    
  | 
  |     <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> 
  | 
  |     <servlet>
  |         <servlet-name>Trinidad Resources</servlet-name>
  |         <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
  |     </servlet>
  |     <servlet-mapping>
  |         <servlet-name>Trinidad Resources</servlet-name>
  |         <url-pattern>/adf/*</url-pattern>
  |     </servlet-mapping>    
  | 
  | 
  |     <context-param>
  |         <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
  |         <param-value>false</param-value>
  |     </context-param>   
  |     
  |     <welcome-file-list>
  |         <welcome-file>index.html</welcome-file>
  |     </welcome-file-list>
  |     <resource-ref>
  |         <res-ref-name>jdbc/TXOracleDS</res-ref-name>
  |         <res-type>javax.sql.DataSource</res-type>
  |         <res-auth>Container</res-auth>
  |         <res-sharing-scope>Shareable</res-sharing-scope>
  |     </resource-ref>   
  | </web-app>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049844#4049844

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049844



More information about the jboss-user mailing list