8 Replies Latest reply on Sep 7, 2008 2:59 AM by jaikiran pai

    Problems deploying to JBoss 4.2.0 - pesky JSF?

    Nick Albion Newbie

      I've just upgraded from JBoss 4.0.5 to 4.2.0 and am having all sorts of trouble deploying my web app.

      I was using Selenium to test the web pages, but have removed that because I suspected that there was a compatibility problem, but the problem still exists (actually it was complaing about org.apache.commons.digester)

      This doesn't make any sense to me because I can't even see any trace of where I'm calling JSF methods...

      02:58:02,703 INFO [TomcatDeployer] deploy, ctxPath=/mojoWeb, warUrl=.../deploy/mojoWeb.war/
      02:58:07,640 INFO [STDOUT] 02:58:07,640 ERROR [[/mojoWeb]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.IncompatibleClassChangeError: Class org.jnp.server.NamingServer does not implement the requested interface org.jnp.interfaces.Naming
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
       at javax.naming.InitialContext.lookup(InitialContext.java:392)
       at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:441)
       at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:86)
       at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:139)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:249)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
       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:297)


        • 1. Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
          Elias Ross Master

          org.JNP is part of JBoss's JNDI impl. What's in your .war classpath?

          • 2. Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
            Nick Albion Newbie

            .classpath (generated by Eclipse):

            <?xml version="1.0" encoding="UTF-8"?>
            <classpath>
             <classpathentry excluding="net/sourceforge/wurfl/|net/sourceforge/wurfl/wall/" kind="src" output="WebRoot/WEB-INF/classes" path="src"/>
             <classpathentry kind="src" output="build" path="test"/>
             <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
             <classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
             <classpathentry combineaccessrules="false" kind="src" path="/mojoWebEJB"/>
             <classpathentry exported="true" kind="lib" path="/mojoWebEJB/lib/oscache-2.3.2.jar"/>
             <classpathentry kind="var" path="JUNIT_HOME/junit.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.jdt.source_3.1.0/src/org.junit_3.8.1/junitsrc.zip"/>
             <classpathentry kind="lib" path="C:/sw_dev/java/j2ee/lib/testng/testng-5.1-jdk15.jar"/>
             <classpathentry exported="true" kind="lib" path="C:/Documents and Settings/nick/workspace/tools/java/wurflapi-xom/antbuild/wurfltags.jar" sourcepath="/Wurfl Java API/src"/>
             <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/switcher.jar"/>
             <classpathentry kind="lib" path="lib/wapunit0.9.5.jar" sourcepath="/WapStack"/>
             <classpathentry exported="true" kind="lib" path="C:/sw_dev/java/trove/lib/trove.jar"/>
             <classpathentry kind="lib" path="C:/sw_dev/java/jboss-4.2.0.GA/server/default/lib/commons-logging.jar"/>
             <classpathentry kind="lib" path="C:/sw_dev/java/jboss-4.2.0.GA/server/default/lib/log4j.jar"/>
             <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
            </classpath>


            • 3. Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
              Nick Albion Newbie

              I'm confused by the line
              "Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener"

              ...I don't want to use JSF - can I just skip this some how?

              • 4. Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
                John smith Newbie


                Hello,
                we face the same problem.
                Did you get an explanation ???

                Best regards,
                Olivier

                • 5. Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
                  anil e Newbie

                  there should be a prob in ur web.xml with out initializing the servlet object

                  • 6. Re: Problems deploying to JBoss 4.2.0
                    Maheswara Sunkara Novice

                    I am getting the same while migrating from 4.0.3-jdk1.4.2 to 4.2.2-jdk1.6. Anybody has any resolution for this??

                    java.lang.IncompatibleClassChangeError: Class org.jnp.server.NamingServer does not implement the requested interface org.jnp.interfaces.Naming
                    at org.jnp.interfaces.NamingContext.bind(NamingContext.java:591)
                    at org.jnp.interfaces.NamingContext.bind(NamingContext.java:552)
                    at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:495)
                    at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)
                    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:159)
                    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.GeneratedMethodAccessor5.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.GeneratedMethodAccessor10.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 $Proxy42.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 $Proxy43.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.GeneratedMethodAccessor50.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 $Proxy10.deploy(Unknown Source)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)

                    • 7. Re: Problems deploying to JBoss 4.2.0 - pesky JSF?
                      xiao zhou Newbie

                      I also have been such a problem,Who can help me solve, grateful!!!
                      22:39:41,765 INFO[WebappClassLoader] validateJarFile(C:\Program Files\jboss-4.2.2.GA\server\default\.\deploy\test.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
                      22:39:42,109 ERROR [[/ test]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
                      java.lang.IncompatibleClassChangeError: Class org.jnp.server.NamingServer does not implement the requested interface org.jnp.interfaces.Naming
                      at org.jnp.interfaces.NamingContext.lookup (NamingContext.java: 667)
                      at org.jnp.interfaces.NamingContext.lookup (NamingContext.java: 774)
                      at org.jnp.interfaces.NamingContext.lookup (NamingContext.java: 627)
                      at javax.naming.InitialContext.lookup (InitialContext.java: 392) '

                      22:39:42,109 ERROR [StandardContext] Error listenerStart
                      22:39:42,109 ERROR [StandardContext] Context [/test] startup failed due to previous errors
                      22:39:42,171 WARN [ServiceController] Problem starting service jboss.web.deployment:war=test.war,id=1856680672
                      org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss-4.2.2.GA/server/default/deploy/test.war/ deployment failed
                      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
                      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)