3 Replies Latest reply on Oct 1, 2014 5:01 AM by gabz92

    Error at server JBoss 7.4 (EAP 6.3) startup with seam 2.2.2

    gabz92

      Hello, I'm migrating an application from JBoss 4.2.1.GA to JBoss 7.4, but I face some tricky trouble and I can't find how to solve it.

       

      Note that I managed to install Hibernate 3, but my problem doesn't seem to be relative to it.

       

      In my jboss-deployment-structure.xml, I've excluded JSF2 and activated JSF1.2, this lead me to a new error that I solved by adding to the web.xml :

      <context-param>

          <param-name>com.sun.faces.injectionProvider</param-name>

          <param-value>org.jboss.web.jsf.integration.injection.JBossDelegatingInjectionProvider</param-value>

        </context-param>

        <context-param>

          <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>

          <param-value>Mojarra-1.2</param-value>

        </context-param>

       

      Here is my stack trace :

       

      17:09:26,920 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/meteor-admin-war]] (ServerService Thread Pool -- 128) JBWEB000287: 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-2.2.2.Final.jar:2.2.2.Final]

        at org.jboss.seam.init.Initialization.init(Initialization.java:737) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]

        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]

        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:59) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:94) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_45]

        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

        at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.NullPointerException

        at org.jboss.seam.core.Expressions.<clinit>(Expressions.java:51) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]

        ... 14 more

       

      When I look at the source code, line 51 is only loading a file "blacklist.properties" which is in the jar, I couldn't debug this line with Eclipse and I don't understand why there's a NPE.

      I can't switch to Wildfly since we still have a lot of EJB 2, so this can't be a solution.

       

      Could someone help me with this error ?

      In advance, thank you.