3 Replies Latest reply on May 10, 2019 10:16 PM by Ricardo Morais

    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)

            • 3. Re: Seam 2.2.2 deploy error JBoss as 7
              Ricardo Morais Newbie

              I am trying to put a Seam 2.2 application to run on WildFly 10 without success.

               

              I am facing this issue event the steps one and two are properly done:

              Caused by: com.sun.faces.config.ConfigurationException:

                Source Document: file:/home/ancinedev/development/wf10/wildfly-10.1.0.Final/build/target/wildfly-10.1.0.Final/standalone/tmp/vfs/deployment/deploymentab25fb411cdd6bba/suat.war-926c904131563db0/WEB-INF/faces-config.xml

                Cause: Class 'com.sun.facelets.FaceletViewHandler' is not an instance of 'class javax.faces.application.ViewHandler'

              at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:259)

              at com.sun.faces.config.processor.ApplicationConfigProcessor.setViewHandler(ApplicationConfigProcessor.java:382)

              at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:231)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:120)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:133)

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:204)

              ... 21 more

               

               

              After doing the steps 3 and 4 the error is different:

              Caused by: com.sun.faces.config.ConfigurationException:

                Source Document: vfs:/content/suatEAR.ear/lib/jsf-facelets-1.1.15.B1.jar/META-INF/faces-config.xml

                Cause: Class 'com.sun.facelets.component.RepeatRenderer' is not an instance of 'class javax.faces.render.Renderer'

              at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:259)

              at com.sun.faces.config.processor.RenderKitConfigProcessor.addRenderers(RenderKitConfigProcessor.java:249)

              at com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:152)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:258)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:108)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:118)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:109)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:252)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:120)

              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:133)

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:204)