12 Replies Latest reply on Apr 16, 2010 5:39 AM by JSF Developer

    Deployment of Richfaces Demo project in jboss

    JSF Developer Newbie

      Hi,

       

      I am trying to deploy my demo war in jboss-4.2.3.GA.I get the following error while deploying the war.I have used Richfaces3.3.2 version.

      When i deploy the same war in tomcat 6.0.16 i dont face any issues.

      Which is the stable version of jboss where i can deploy my war file.

       

      16:44:10,796 ERROR [Digester] Begin event threw exception

      java.lang.NullPointerException

              at org.ajax4jsf.resource.InternetResourceBuilder.getInstance(InternetResourceBuilder.java:162)

              at org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconBasic.<init>(ScrollableDataTableIconBasic.java:22)

              at org.richfaces.renderkit.html.iconimages.ScrollableDataTableIconSortAsc.<init>(ScrollableDataTableIconSortAsc.java:11)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at java.lang.Class.newInstance0(Class.java:355)

              at java.lang.Class.newInstance(Class.java:308)

              at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)

              at org.apache.commons.digester.Rule.begin(Rule.java:175)

              at org.apache.commons.digester.Digester.startElement(Digester.java:1453)

              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

              at org.apache.commons.digester.Digester.parse(Digester.java:1765)

              at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:209)

              at org.ajax4jsf.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:153)

              at org.ajax4jsf.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:224)

              at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.<init>(ChameleonRenderKitFactory.java:62)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:586)

              at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:472)

              at javax.faces.FactoryFinder.access$400(FactoryFinder.java:139)

              at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:796)

              at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)

              at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)

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

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

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)

              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)

              at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

              at org.jboss.web.WebModule.startModule(WebModule.java:83)

              at org.jboss.web.WebModule.startService(WebModule.java:61)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:417)

              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy44.start(Unknown Source)

              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

              at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

              at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

              at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

              at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy45.start(Unknown Source)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

              at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy9.deploy(Unknown Source)

              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:417)

              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at $Proxy5.deploy(Unknown Source)

              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

              at org.jboss.Main.boot(Main.java:200)

              at org.jboss.Main$1.run(Main.java:508)

              at java.lang.Thread.run(Thread.java:619)

      16:44:11,296 INFO  [config] Unsanitized stacktrace from failed start...

      com.sun.faces.config.ConfigurationException: Factory 'javax.faces.render.RenderKitFactory' was not configured properly.

              at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:305)

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

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

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)

              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)

              at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

              at org.jboss.web.WebModule.startModule(WebModule.java:83)

              at org.jboss.web.WebModule.startService(WebModule.java:61)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:417)

       

       

      Thanks in advance for the help.

        • 1. Re: Deployment of Richfaces Demo project in jboss
          Ilya Shaikovsky Master

          I used 4.x Jboss for a long time and things were ok there. seems some conficts with your libs and common server ones. Please share your app libraries list.

          • 2. Re: Deployment of Richfaces Demo project in jboss
            JSF Developer Newbie

            I have the following libraries present in my application:

             

            1.axis.jar
            2.commons-beanutils-1.7.0.jar
            3.commons-digester-1.8.jar
            4.commons-discovery-0.2.jar
            5.commons-el.jar
            6.commons-logging-1.0.4.jar
            7.jaxrpc.jar
            8.jsf-api.jar
            9.jsf-impl.jar
            10.jstl-1.0.jar
            11.richfaces-api-3.3.2.SR1.jar
            12.richfaces-impl-3.3.2.SR1.jar
            13.richfaces-ui-3.3.2.SR1.jar
            14.servlet-api.jar
            15.wsdl4j-1.5.1.jar

             

            Thanks in Advance for the help.

            • 3. Re: Deployment of Richfaces Demo project in jboss
              Jay Balunas Master

              I am going to move this to the RichFaces forum the RichFaces Development forum is for discussions related to the development of RichFaces project itself.  You will share your question and any answers with more people from the community in the user forum.

               

              Thanks

              • 4. Re: Deployment of Richfaces Demo project in jboss
                Nick Belaevski Master

                Hi,

                 

                JBoss 4.2 comes with bundled JSF libraries. So the following can be removed:

                 

                - jsf-api

                - jsf-impl

                - servlet-api

                - jstl-1.0

                1 of 1 people found this helpful
                • 5. Re: Deployment of Richfaces Demo project in jboss
                  JSF Developer Newbie

                  Hi,

                   

                  I tried removing the said jars and deployed the war i get the below error.I am not sure what is going wrong.

                   

                   

                  9:30,734 ERROR [[/]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
                  .lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
                      at com.sun.faces.config.ConfigureListener.getServletContextIdentifier(ConfigureListener.java:505)
                      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:138)
                      at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:71)
                      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
                      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
                      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
                      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                      at org.jboss.web.WebModule.startModule(WebModule.java:83)
                      at org.jboss.web.WebModule.startService(WebModule.java:61)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                      at $Proxy0.start(Unknown Source)
                      at org.jboss.system.ServiceController.start(ServiceController.java:417)
                      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy44.start(Unknown Source)
                      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                      at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
                      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy45.start(Unknown Source)
                      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                      at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:368)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy43.addDeployer(Unknown Source)
                      at org.jboss.web.tomcat.service.JBossWeb.startService(JBossWeb.java:517)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                      at org.jboss.deployment.SubDeployerInterceptor.invokeNext(SubDeployerInterceptor.java:124)
                      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:109)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                      at $Proxy0.start(Unknown Source)
                      at org.jboss.system.ServiceController.start(ServiceController.java:417)
                      at org.jboss.system.ServiceController.start(ServiceController.java:435)
                      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy4.start(Unknown Source)
                      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
                      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy9.deploy(Unknown Source)
                      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                      at $Proxy0.start(Unknown Source)
                      at org.jboss.system.ServiceController.start(ServiceController.java:417)
                      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy4.start(Unknown Source)
                      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
                      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                      at $Proxy5.deploy(Unknown Source)
                      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                      at org.jboss.Main.boot(Main.java:200)
                      at org.jboss.Main$1.run(Main.java:508)

                   

                   

                   

                  Thanks in advance for the help.

                  • 6. Re: Deployment of Richfaces Demo project in jboss
                    Nick Belaevski Master

                    It looks like servlet-api is still being deployed. Check that.

                    • 7. Re: Deployment of Richfaces Demo project in jboss
                      JSF Developer Newbie

                      When i analysed the log after your suggestion i found that servlet-api jar is not loaded.I got this error after removing the jsf and servlet api jars from the  lib directory of my code base.But i am not sure what needs to be done now.Could you please let me know whats needs to be done.Thanks in adavnce for the help.

                       

                       

                       

                      16:33:47,843 INFO  [TomcatDeployer] deploy, ctxPath=/richDemo, warUrl=.../tmp/deploy/tmp5481441858285442916richDemo-exp.war/
                      16:34:08,328 INFO  [WebappClassLoader] validateJarFile(E:\Documents\Task-Done\18March2010\jboss-4.2.3.GA\server\default\.\tmp\deploy\tmp5481441858285442916richDemo-exp.war\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
                      16:34:08,640 ERROR [[/richDemo]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
                      java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
                              at com.sun.faces.config.ConfigureListener.getServletContextIdentifier(ConfigureListener.java:594)
                              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:155)
                              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
                              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
                              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
                              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
                              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                              at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                              at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                              at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                              at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                              at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                              at org.jboss.web.WebModule.startModule(WebModule.java:83)
                              at org.jboss.web.WebModule.startService(WebModule.java:61)
                              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                              at $Proxy0.start(Unknown Source)
                              at org.jboss.system.ServiceController.start(ServiceController.java:417)
                              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                              at $Proxy44.start(Unknown Source)
                              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                              at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                              at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
                              at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                              at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                              at $Proxy45.start(Unknown Source)
                              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                              at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:597)
                              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                              at $Proxy9.deploy(Unknown Source)

                      • 8. Re: Deployment of Richfaces Demo project in jboss
                        Nick Belaevski Master

                        Can't agree with you. According to the log it's actually loaded.

                        • 9. Re: Deployment of Richfaces Demo project in jboss
                          JSF Developer Newbie

                          Hi Nick,

                           

                                     But in the log i see that the jar is not loaded.Can you please let me know why you feel the jar has been loaded.

                          If the jar is loaded why is the demo not getting deployed successfully.

                           

                          Thanks and Regards,

                          JSFDeveloper

                          • 10. Re: Deployment of Richfaces Demo project in jboss
                            JSF Developer Newbie

                            Hi Nick,

                             

                                    I had messed up with the servlet-api.jar when i  replaced the original servlet-api.jar i got the below error.

                             

                            18:00:43,828  ERROR [application] JSF1029: The specified InjectionProvider  implementation  'org.jboss.web.jsf.integration.injection.JBossInjectionProvider' does  not implement the InjectionProvider interface.
                            18:00:43,828 INFO  [application] JSF1048: PostConstruct/PreDestroy  annotations present.  ManagedBeans methods marked with these annotations  will have said annotations processed.
                            18:00:48,312 ERROR [[/richdemo]] Exception sending context initialized  event to listener instance of class  org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
                            java.lang.ClassCastException: com.sun.faces.config.WebConfiguration  cannot be cast to com.sun.faces.config.WebConfiguration
                                     at  com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:170)
                                     at  com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:161)
                                     at  org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:71)
                                     at  org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
                                     at  org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
                                     at  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
                                     at  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
                                     at  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                     at  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                                     at  org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
                                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                     at  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
                                     at  org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                                     at  org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                                     at  org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                                     at org.jboss.web.WebModule.startModule(WebModule.java:83)
                                     at org.jboss.web.WebModule.startService(WebModule.java:61)
                                     at  org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                                     at  org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                                     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                                     at  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                                     at $Proxy0.start(Unknown Source)
                                     at  org.jboss.system.ServiceController.start(ServiceController.java:417)
                                     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                                     at  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                                     at $Proxy44.start(Unknown Source)
                                     at  org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                     at  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                                     at  org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                                     at  org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                                     at  org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                                     at  org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                                     at  org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
                                     at  org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                                     at  org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                                     at  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                                     at $Proxy45.start(Unknown Source)
                                     at  org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                                     at  org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                                     at  org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                                     at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                                     at  org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                                     at  org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                                     at  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                                     at $Proxy9.deploy(Unknown Source)
                                     at  org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                                     at  org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                                     at  org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                                     at  org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                                     at  org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                                     at  org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                                     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                                     at  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                                     at $Proxy0.start(Unknown Source)
                                     at  org.jboss.system.ServiceController.start(ServiceController.java:417)
                                     at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                                     at  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                     at java.lang.reflect.Method.invoke(Method.java:597)
                                     at  org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                                     at  org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                                     at  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                                     at  org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                                     at $Proxy4.start(Unknown Source)

                             

                            Thanks in advance for the help.

                             

                            Thanks and Regards,

                            JSFDeveloper

                            • 11. Re: Deployment of Richfaces Demo project in jboss
                              Nick Belaevski Master

                              JSF Developer wrote:

                               

                              java.lang.ClassCastException: com.sun.faces.config.WebConfiguration  cannot be cast to com.sun.faces.config.WebConfiguration

                              Now you have two conflicting JSF implementations. I can just repeat what I said: remove conflicting .jar files. And check contents of actual deployment folder, not IDE settings.

                              1 of 1 people found this helpful
                              • 12. Re: Deployment of Richfaces Demo project in jboss
                                JSF Developer Newbie

                                Thanks Nick for your suggestions.I was not able to deploy the application after removing the jars from my WEB-INF\lib folder.I need to look into that.Will update the discussion once i am able to deploy the application without having JSF jars in war.As of now i found an alternative.

                                 

                                I have deployed my war in jboss-4.2.3.GA.

                                 

                                The alternative solution for my problem.I found that there is a setting in web.xml which will make the war jars to be used:

                                     <context-param>
                                          <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
                                          <param-value>true</param-value>
                                     </context-param>

                                I was able to deploy the application successfully.:)

                                As of now i am able access my application.

                                 

                                When i analysed the jboss log i found an error :

                                 

                                The specified InjectionProvider implementation 'org.jboss.web.jsf.integration.injection.JBossInjectionProvider' does not implement the InjectionProvider interface.

                                 

                                When searched on net on this error i found the below link

                                 

                                http://wiki.foochal.org/index.php/The_specified_InjectionProvider_implementation_%27org.jboss.web.jsf.integration.injection.JBossInjectionProvider%27_does_not_implement_the_InjectionProvider_interface.

                                 

                                This again points to the conflicting JSF jars.

                                One futhur searching on the error i found the below link:

                                 

                                http://seamframework.org/102674.lace

                                In this link they have suggested to place jboss-faces.jar from the location jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\jsf-libs to the application lib folder(WEB_INF\lib).I was able to get rid of the ERROR after doing so.

                                 

                                Just for reference a similar issue

                                http://www.coderanch.com/t/463225/JSF/java/Error-Deploying-JSF-application-JBOSS