2 Replies Latest reply on Nov 9, 2011 12:42 AM by Mark Paluch

    Richfaces on Jboss AS 7

    Sunil Pandit Newbie

      Hello Folks ,

       

      I am trying to deploy one of  my web application on Jboss AS 7.0.1 . This web application is using richfaces 3.3.3 . I have all the jar files in the web-inf/lib folder and I have set

       

      <context-param>

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

            <param-value>true</param-value>

          </context-param>

       

      to make sure that all the jar files are loaded from web-inf/lib .

       

      When I start the application , it throws null pointer exception with an error

       

      Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

       

      Further debugging I found that  FacesContext at

       

      public static WebConfiguration getInstance() {

       

              FacesContext facesContext = FacesContext.getCurrentInstance();

              return getInstance(facesContext.getExternalContext());

       

          }

       

      is null .

       

      I do not know what could cause this error . Can some one shed some light on this .

       

      Thanks

      Sunil

        • 1. Re: Richfaces on Jboss AS 7
          Sunil Pandit Newbie

          Here is the exception I am getting

           

          ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/eAppAdmin]] (MSC service thread 1-1) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:214) [jsf-impl.jar:]

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:200) [jsf-impl.jar:]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_26]

              at java.lang.Thread.run(Unknown Source) [:1.6.0_26]

          Caused by: java.lang.NullPointerException

              at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:126) [jsf-impl.jar:]

              at com.sun.faces.renderkit.ResponseStateManagerImpl.init(ResponseStateManagerImpl.java:422) [jsf-impl.jar:]

              at com.sun.faces.renderkit.ResponseStateManagerImpl.<init>(ResponseStateManagerImpl.java:117) [jsf-impl.jar:]

              at com.sun.faces.renderkit.RenderKitImpl.<init>(RenderKitImpl.java:102) [jsf-impl.jar:]

              at com.sun.faces.renderkit.RenderKitFactoryImpl.<init>(RenderKitFactoryImpl.java:79) [jsf-impl.jar:]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]

              at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.6.0_26]

              at java.lang.Class.newInstance0(Unknown Source) [:1.6.0_26]

              at java.lang.Class.newInstance(Unknown Source) [:1.6.0_26]

              at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537) [jsf-api.jar:]

              at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:386) [jsf-api.jar:]

              at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135) [jsf-api.jar:]

              at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717) [jsf-api.jar:]

              at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239) [jsf-api.jar:]

              at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:187) [jsf-impl.jar:]

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132) [jsf-impl.jar:]

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:204) [jsf-impl.jar:]

          • 2. Re: Richfaces on Jboss AS 7
            Mark Paluch Master

            Hey Sunil,

            i currently run RF4 + JSF 2.0 on my AS7, and i didn't had to config that much. You'll find my config (web.xml and faces.xml) attached.

             

            Best regards,

            Mark

             

            Btw: I provided RF4 and JSF2 libs within my WEB-INF/lib