2 Replies Latest reply on Apr 6, 2012 6:57 AM by duttagoutam

    Seam 2.2.2 deploy error JBoss as 7

    Ciccio Pasticcio Newbie

      Hi all,
      I'm try to deploy a generated Seam 2.2.2 project into JBoss as 7, I've follow this tutorial http://community.jboss.org/blogs/marek-novotny/2011/07/15/seam-2-jpa-example-on-jboss-as7, but inside the log I've this error:


      12:11:30,485 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/FantaFormazioneWeb7]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.ExceptionInInitializerError
           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(ThreadPoolExecutor.java:886) [:1.6.0_25]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      Caused by: java.lang.NullPointerException
           at org.jboss.seam.core.Expressions.<clinit>(Expressions.java:51) [jboss-seam.jar:]
           ... 11 more
      
      12:11:30,556 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Initializing Mojarra (1.2_13-b01-FCS) for context '/FantaFormazioneWeb7'
      12:11:31,872 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-3) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.
      12:11:31,875 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-3) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
      12:11:32,301 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Error listenerStart
      12:11:32,303 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Context [/FantaFormazioneWeb7] startup failed due to previous errors
      12:11:32,305 INFO  [org.jboss.web] (MSC service thread 1-3) registering web context: /FantaFormazioneWeb7
      12:11:32,326 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "FantaFormazioneWeb7.war"



      Can you help me?
      Thank you



        • 1. Re: Seam 2.2.2 deploy error JBoss as 7
          Ciccio Pasticcio Newbie

          Solved: I must to integrate the gwt libraries.

          • 2. Re: Seam 2.2.2 deploy error JBoss as 7
            Newbie

            This example will not work for the seam 2.2.2 Final with JBOSS 7.0.1, if you do not do the following:

            1. Copy the following jar in WEB-INF/lib

            gwt-servlet.jar
            javassist.jar

             

            2. Download richfaces-ui- 3.3.3-Final-bin.zip and replace/copy the following jars to WEB-INF/lib

            richfaces-ui-3.3.3.Final.jar

            richfaces-impl-jsf2-3.3.3.Final.jar

            richfaces-api-3.3.3.Final

            3. Block the following in faces-config.xml

            <!-- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> -->

             

            4. Add  the following in faces-config.xml

            <application>     <view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler> </application>

            5. Open URL/ Send request in Morzilla FireFox browser (does not work with IE)