5 Replies Latest reply on Jul 18, 2011 9:26 AM by jaikiran

    Can't deploy Seam 2 apps to AS 7

    orr94

      I'm having trouble deploying a Seam 2.2.1 application to JBoss AS 7.0.0.FINAL. I followed the instructions at https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7, specifically the section Running Seam 2 archives on JBoss AS 7. Since I was having trouble with my own application, I just decided to follow the exact directions for the jboss-seam-jpa example.

       

      When I put the war in [jboss7 home]\standalone\deployments, it fails to start the application with the following exception:

       

      14:45:17,784 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/AS7Test]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.NullPointerException 
                at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1170) [jboss-seam.jar:] 
                at org.jboss.seam.init.Initialization.init(Initialization.java:737) [jboss-seam.jar:] 
                at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam.jar:] 
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR4.jar:7.0.0.Final] 
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.0.CR4.jar:7.0.0.Final] 
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final] 
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_25]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_25]
                at java.lang.Thread.run(Unknown Source) [:1.6.0_25]
      
      

       

      I also noticed the following earlier in the logs:

       

      14:45:17,065 INFO  [javax.servlet.ServletContextListener] (MSC service thread 1-4) Welcome to Seam null
      

       

      I actually tried the JPA example after having run into the same problem with my "real" application that has been working on AS 4.2.3.

       

      Any idea what this could be? I'm really excited about AS 7, but we just aren't ready to move to Seam 3/JSF2/etc yet.

       

      I'm attaching the war I used...