3 Replies Latest reply on Aug 3, 2012 11:23 AM by William Sanjaya

    is this AS7 bug with faces-config

    zeeman Novice

      Using AS 7.1 final with Seam 3.1.

       

      Whenever I update faces-config.xml and deploy to an exploded folder on AS7 I get below. After that the server is hung. I have restart to get to accept any requests.

       

       

      01:41:23,833 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! JBAS018047: Thread l

      ocal injection container not set

      01:41:23,843 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376)

      01:41:23,843 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:586)

      01:41:23,843 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.config.ConfigureListener.access$600(ConfigureListener.java:128)

      01:41:23,843 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureLis

      tener.java:1037)

      01:41:23,853 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

      01:41:23,853 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

      01:41:23,853 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

      01:41:23,853 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(

      ScheduledThreadPoolExecutor.java:98)

      01:41:23,853 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic

      (ScheduledThreadPoolExecutor.java:180)

      01:41:23,854 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedul

      edThreadPoolExecutor.java:204)

      01:41:23,854 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8

      86)

      01:41:23,854 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      01:41:23,856 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.lang.Thread.run(Thread.java:662)

      01:41:23,857 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1) Caused by: java.lang.IllegalStateException: JBAS018047: Thread local injection containe

      r not set

      01:41:23,860 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at org.jboss.as.web.deployment.jsf.JsfInjectionProvider.<init>(JsfInjectionProvider

      .java:46)

      01:41:23,862 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      01:41:23,864 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI

      mpl.java:39)

      01:41:23,866 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA

      ccessorImpl.java:27)

      01:41:23,869 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      01:41:23,871 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.lang.Class.newInstance0(Class.java:355)

      01:41:23,873 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at java.lang.Class.newInstance(Class.java:308)

      01:41:23,874 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.spi.InjectionProviderFactory.getProviderInstance(InjectionProvider

      Factory.java:156)

      01:41:23,877 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.spi.InjectionProviderFactory.createInstance(InjectionProviderFacto

      ry.java:117)

      01:41:23,879 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)

      01:41:23,881 ERROR [stderr] (Mojarra-WebResourceMonitor-1-thread-1)     ... 12 more

      01:41:23,882 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-1-thread-1) Reload complete.

      01:41:27,258 SEVERE [javax.faces] (http--127.0.0.1-8080-1) Application was not properly initialized at startup, could not find Factory: javax.faces.render.

      RenderKitFactory. Attempting to find backup.

        • 2. Re: is this AS7 bug with faces-config
          elfuhrer Novice

          A bit of code would help, I'm using Seam 3.1 with JBoss 7.1.0.Final and it works like charm

          • 3. Re: is this AS7 bug with faces-config
            William Sanjaya Newbie

            With setup similar to that in https://blogs.oracle.com/rlubke/entry/groovy_mojarra except for

             <context-param>

               <param-name>javax.faces.PROJECT_STAGE</param-name>

               <param-value>Development</param-value>

            </context-param>

            in web.xml, using JBoss AS 7.1.1 I encounter the same error right after touching faces-config.xml as zeeman.

             

             

            22:18:54,824 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-3-thread-1) jndi:/default-host/myproject/WEB-INF/faces-config.xml changed!

            22:18:54,826 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (Mojarra-WebResourceMonitor-3-thread-1) Reloading JSF configuration for context /myproject

            22:18:54,829 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1) java.lang.NullPointerException

             

            22:18:54,829 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.ArrayList.<init>(Unknown Source)

             

            22:18:54,832 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.application.WebappLifecycleListener.getActiveSessions(WebappLifecycleListener.java:378)

             

            22:18:54,832 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:527)

             

            22:18:54,835 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigureListener.access$600(ConfigureListener.java:128)

             

            22:18:54,837 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1037)

             

            22:18:54,837 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

             

            22:18:54,840 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

             

            22:18:54,842 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

             

            22:18:54,842 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)

             

            22:18:54,845 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

             

            22:18:54,847 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

             

            22:18:54,847 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

             

            22:18:54,850 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.lang.Thread.run(Unknown Source)

             

            22:18:55,048 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1) com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! JBAS018047: Thread local injection container not set

             

            22:18:55,051 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376)

             

            22:18:55,051 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:586)

             

            22:18:55,051 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigureListener.access$600(ConfigureListener.java:128)

             

            22:18:55,053 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1037)

             

            22:18:55,053 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

             

            22:18:55,053 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

             

            22:18:55,053 ERROR [stderr] (Mojarra-WebResourceMonitor-3-thread-1)      at java.util.concurrent.FutureTask.runAndReset(Unknown Source)