2 Replies Latest reply on Nov 20, 2012 10:22 AM by gebuh

    Jboss 7 and servlets 3.0

    gebuh Newbie

      I'm using JBoss 7.1.1.Final.  I had a problem recently with displaying dynamically generated menus in Seam 2.3 using RichFaces 4.3.3. 

      https://community.jboss.org/thread/213280?tstart=0

       

      The fix turned out to be adding a web.xml entry to account for using servlets 2.5 or lower (https://community.jboss.org/wiki/Troubleshooting-ResourceOptimization.)  But I was under the impression that JBoss7 used servlets 3.0.  Is there some configuration setting that allows for the use of <3.0?  Would this be some setting in my application?

        • 1. Re: Jboss 7 and servlets 3.0
          Stephen Coy Master

          Does your web.xml have

           

               metadata-complete=true

           

          set in it? This would cause that problem.

          • 2. Re: Jboss 7 and servlets 3.0
            gebuh Newbie

            Thanx for the reply Stephen, no that entry isn't in my web.xml, here's the whole thing:

            <?xml version="1.0"?>
            <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
             <!-- JSF  not needed in jsf2
             <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
             </context-param>
             -->
             <!-- Change to "Production" when you are ready to deploy -->
             <context-param>
              <param-name>javax.faces.PROJECT_STAGE</param-name>
              <param-value>Development</param-value>
             </context-param>
             <!-- Suppress spurious stylesheets -->
             <context-param>
              <param-name>org.richfaces.enableControlSkinning</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.enableControlSkinningClasses</param-name>
              <param-value>false</param-value>
             </context-param>
             <!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs -->
             <context-param>
              <param-name>org.richfaces.resourceOptimization.enabled</param-name>
              <param-value>true</param-value>
             </context-param>
             <!-- RichFaces -->
             <context-param>
              <param-name>org.richfaces.skin</param-name>
              <param-value>blueSky</param-value>
             </context-param>
             <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
             </filter>
             <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
              <init-param>
               <param-name>maxFileSize</param-name>
               <param-value>20m</param-value>
              </init-param>
             </filter>
             <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>/*</url-pattern>
             </filter-mapping>
             <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
             </filter-mapping>
             <!-- Seam -->
             <listener>
              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
             </listener>
             <listener>
              <listener-class>com.raytheon.AtcotsEmployee.criteria.sessions.SessionCollectionListener</listener-class>
             </listener>
             <servlet>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
             </servlet>
             <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet>
                <servlet-name>Resource Servlet</servlet-name>
                <servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
            </servlet>
             <servlet-mapping>
                <servlet-name>Resource Servlet</servlet-name>
                <url-pattern>/org.richfaces.resources/*</url-pattern>
            </servlet-mapping>
            
             <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
             </servlet-mapping>
             <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/>
             </security-constraint>
            </web-app>