3 Replies Latest reply on Apr 16, 2009 6:59 PM by David McWhorter

    Seam 2.1.1.GA war on Jboss-AS-5

    Filippo De Luca Newbie

      Hi Seam users,
      I'm developing a simple webapp using Seam. It do not contain any EJB3 stateles or statefull bean, only Entity and pojo seam component, so i chose to deploy it in simple war. I works ok on jboss-4.2.2 but when i migrate to jboss-5.0.0 I have some exceptions on deploy. I've search accros the issues and forums for some solutions, but I can't found anything solves my issue.


      The exception is:


      2009-02-17 23:32:18,858 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CineAR-1.0-SNAPSHOT]] (HDScanner) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: Error handling file /home/filosganga/tmp/jboss-5.0.0.GA/server/default/deploy/CineAR-1.0-SNAPSHOT.war/WEB-INF/lib/jboss-seam-ui-2.1.1.GA.jar
              at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:134)
              at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)
              at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)
              at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113)
              at org.jboss.seam.init.Initialization.create(Initialization.java:132)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
      



      my web.xml is:


      <?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">
      
           <!-- JSF -->
           <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
           </context-param>
           <context-param>
                <param-name>facelets.DEVELOPMENT</param-name>
                <param-value>true</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>*.htm</url-pattern>
           </servlet-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.servlet.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.SeamResourceServlet
                </servlet-class>
           </servlet>
           <servlet-mapping>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <url-pattern>/seam/resource/*</url-pattern>
           </servlet-mapping>
      
      
           <!-- misc -->
           <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>
                <web-resource-collection>
                     <web-resource-name>JSPX</web-resource-name>
                     <url-pattern>*.jspx</url-pattern>
                </web-resource-collection>
                <auth-constraint>
                     <role-name>NONE</role-name>
                </auth-constraint>
           </security-constraint>
           
           <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
           </welcome-file-list>
           
      </web-app>
      



      Any idea to solve this issue? if other info is needed I will avalaible to give you.
      Thank you very much


      Filippo De Luca


      Developer @ WURFL-Pro