13 Replies Latest reply on Jun 4, 2009 5:14 PM by Jeff Rutt

    Cannot find method addChild with this signature

    Jeff Rutt Newbie

      Ubuntu 9.04
      java version "1.5.0_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
      Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode)

      My application works fine with JBossAS 4.2.3. My application also works fine with tomcat and glassfish.

      My application has the following error with JBossAS 5. I've tried jboss-5.0.1.GA and jboss-5.1.0.CR1.

      +++++

      09:44:47,036 INFO [TomcatDeployment] deploy, ctxPath=/idm
      09:44:47,144 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/idm state=Create mode=Manual requiredState=Installed
      org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-kqi15f-fulaa8ef-1-fulabs82-9m/idm.war/ deployment failed
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:318)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      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:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy36.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4150)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
      ... 55 more
      09:44:47,152 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-kqi15f-fulaa8ef-1-fulabs82-9m/idm.war/ deployment failed
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:318)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      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:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy36.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4150)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
      ... 55 more
      09:44:47,814 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
      09:44:47,937 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      DEPLOYMENTS IN ERROR:
      Deployment "vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/" is in error due to the following reason(s): LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature

      +++++

      I've tried the workarounds suggested in the following topics, but nothing has worked for me.

      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=151470
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=149625
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=146916

      Thanks

        • 1. Re: Cannot find method addChild with this signature
          jaikiran pai Master

          Are you packaging any JBoss specific libraries in your application? And did you do any changes to the AS installation after you downloaded it? Post the output of

          jar -tf idm.war


          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: Cannot find method addChild with this signature
            Jeff Rutt Newbie

             

            Are you packaging any JBoss specific libraries in your application?


            NO, or not that I'm aware of.

            And did you do any changes to the AS installation after you downloaded it?


            YES -- set "JAVA_HOME" in run.conf.

            The output of 'jar -tf idm.war' is HUGE (~10k lines). Is there something specific that you are looking for? Maybe a specific subdir?

            • 3. Re: Cannot find method addChild with this signature
              jaikiran pai Master

              I'm mainly interested the jars that you have under the WEB-INF/lib of your war file.

              • 4. Re: Cannot find method addChild with this signature
                Jeff Rutt Newbie

                Here's what's in my 'WEB-INF/lib' :

                activation.jar
                amclientsdk.jar
                ant.jar
                aspectjrt.jar
                axis.jar
                bcel.jar
                bcprov-jdk15-137.jar
                bcprov-jdk16-137.jar
                beanshell.jar
                bridgestream-common.jar
                commons-beanutils.jar
                commons-codec.jar
                commons-collections.jar
                commons-digester.jar
                commons-discovery.jar
                commons-fileupload.jar
                commons-httpclient.jar
                commons-logging.jar
                commons-pool.jar
                commons-validator.jar
                connector-framework-internal.jar
                connector-framework.jar
                db2java.jar
                db2jcc.jar
                dsclass.jar
                DSUtils.jar
                external-debug.jar
                fscontext.jar
                fxrm.jar
                groovy-all.jar
                habeans2.jar
                hsqldb.jar
                httpunit.jar
                idmadapter.jar
                idmadaptertesting.jar
                idmauditor.jar
                idmclient.jar
                idmcommon.jar
                idmformui.jar
                idm.jar
                idmspe.jar
                idmtest.jar
                imq.jar
                INICrypto4Java.jar
                iTextAsian.jar
                itext.jar
                j2ee.jar
                jaas.jar
                javascript.jar
                jaxen.jar
                jaxrpc.jar
                jcalendar.jar
                jcert.jar
                jcommon.jar
                jconn2.jar
                jdic.jar
                jdom.jar
                jdriver.jar
                je.jar
                jettison.jar
                jfreechart.jar
                jgraph.jar
                jgroups-all.jar
                jms.jar
                jmxri.jar
                jmxtools.jar
                jsch.jar
                JSQLConnect.jar
                jsr173_api.jar
                jsso.jar
                jt400.jar
                jtestcase.jar
                junit.jar
                ktsearch.jar
                ldapbp.jar
                ldap.jar
                ldapjdk.jar
                log4j.jar
                mail.jar
                mssqlserver.jar
                mysqljdbc.jar
                OpenDS.jar
                openspml2-toolkit.jar
                openspml.jar
                oracle11g_jdbc.jar
                pathway_bean.jar
                PD.jar
                postgresqljdbc.jar
                profile.jaw
                providerutil.jar
                quicksetup.jar
                rowset.jar
                RWebSDK-no-jsch.jar
                saaj.jar
                sapidoc.jar
                sapidocjco.jar
                sapjco.jar
                scn_stprs_util.jar
                selenium-java-client-driver.jar
                selenium-java-client-driver-tests.jar
                sjsxp.jar
                smjavaagentapi.jar
                smjavasdk2.jar
                soap.jar
                stc.jar
                stj.jar
                struts.jar
                velocity-dep.jar
                velocity.jar
                wicmessages.jar
                wrqtls12.jar
                wsdl4j.jar
                xercesImpl.jar
                xml-apis.jar
                xmlsec-1.4.2.jar
                


                As stated earlier (in my opening post), I tried to remove the jar's as suggested in the following thread (see post dated Mar 3, 2009 02:56 AM), but it did not help.

                http://www.jboss.org/index.html?module=bb&op=viewtopic&t=151470


                • 5. Re: Cannot find method addChild with this signature
                  Jeff Rutt Newbie

                  I'm still having this problem and would like to have a solution.

                  Can anybody help?

                  • 6. Re: Cannot find method addChild with this signature
                    jaikiran pai Master

                    Sorry, forgot to follow up on this.


                    As stated earlier (in my opening post), I tried to remove the jar's as suggested in the following thread (see post dated Mar 3, 2009 02:56 AM), but it did not help.


                    Let's try this - add -verbose:class to the JAVA_OPTS section in the server startup script. Then start the server (you might want to redirect the STDOUT output to a file because the logs will be too verbose) and reproduce this issue. Look into the redirected log to see the location of the jar which is being used to load the org.apache.catalina.core.StandardContext or related classes.

                    • 7. Re: Cannot find method addChild with this signature
                      Jeff Rutt Newbie

                      Thanks for the response!

                      Hopefully this is what you're after :

                      09:28:18,056 INFO [TomcatDeployment] deploy, ctxPath=/idm
                      
                      ...
                      
                      [Loaded org.apache.catalina.core.StandardContext from jar:file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war!/WEB-INF/lib/j2ee.jar]
                      
                      ...
                      
                      DEPLOYMENTS IN ERROR:
                       Deployment "vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/" is in error due to the following reason(s): LifecycleException: Error initializaing : javax.management.ReflectionException: Cannot find method addChild with this signature
                      


                      All of the org.apache.catalina.* classes are being loaded from the same jar ("idm.war!/WEB-INF/lib/j2ee.jar")



                      • 8. Re: Cannot find method addChild with this signature
                        jaikiran pai Master

                         

                        "jrutt-sun" wrote:

                        All of the org.apache.catalina.* classes are being loaded from the same jar ("idm.war!/WEB-INF/lib/j2ee.jar")



                        You need to remove that j2ee.jar file from your application packaging. Even though org.apache.catalina.* might be loaded from that jar there are a lot other classes that get loaded through the jboss-j2ee.jar (i guess that's the right name) and other related jar files which can lead to classloading conflicts. The j2ee.jar that you are packaging isn't required because JBoss AS already provides all those classes in its own jar files.


                        • 9. Re: Cannot find method addChild with this signature
                          Jeff Rutt Newbie

                           

                          You need to remove that j2ee.jar file from your application packaging.


                          I'm curious -- why does the same application package work fine with Jboss4, but not JBoss5?

                          • 10. Re: Cannot find method addChild with this signature
                            Jeff Rutt Newbie

                            I removed "j2ee.jar" from my application packaging.

                            Now I get the following errors :

                            11:18:42,778 INFO [TomcatDeployment] deploy, ctxPath=/idm
                            11:18:42,985 ERROR [JBossContextConfig] XML error parsing: context.xml
                            org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                             at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                            
                            ...
                            
                            11:18:42,987 ERROR [JBossContextConfig] XML error parsing: jboss.web/localhost/context.xml.default
                            org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                            at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                            
                            ...
                            
                            11:18:42,996 ERROR [JBossContextConfig] XML error parsing: WEB-INF/context.xml
                            org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                             at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                            
                            ...
                            
                            11:18:43,817 ERROR [ContextConfig] Marking this application unavailable due to previous error(s)
                            11:18:43,819 ERROR [StandardContext] Context [/idm] startup failed due to previous errors
                            11:18:43,822 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/idm state=Create mode=Manual requiredState=Installed
                            org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-i2vsla-fvgtbz39-1-fvgtdbni-9m/idm.war/ deployment failed
                             at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
                            
                            ...
                            
                            11:18:43,832 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/ state=PreReal mode=Manual requiredState=Real
                            org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-i2vsla-fvgtbz39-1-fvgtdbni-9m/idm.war/ deployment failed
                             at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
                            
                            ...
                            
                            11:18:43,917 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
                            11:18:43,992 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                            
                            DEPLOYMENTS IN ERROR:
                             Deployment "vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-i2vsla-fvgtbz39-1-fvgtdbni-9m/idm.war/ deployment failed
                            
                            


                            org.apache.xerces.* is being loaded from idm.war!/WEB-INF/lib/xercesImpl.jar.


                            • 11. Re: Cannot find method addChild with this signature
                              Jeff Rutt Newbie

                              I removed "j2ee.jar" from my application packaging.

                              Now I get the following errors :

                              11:18:42,778 INFO [TomcatDeployment] deploy, ctxPath=/idm
                              11:18:42,985 ERROR [JBossContextConfig] XML error parsing: context.xml
                              org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                               at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                              
                              ...
                              
                              11:18:42,987 ERROR [JBossContextConfig] XML error parsing: jboss.web/localhost/context.xml.default
                              org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                              at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                              
                              ...
                              
                              11:18:42,996 ERROR [JBossContextConfig] XML error parsing: WEB-INF/context.xml
                              org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
                               at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
                              
                              ...
                              
                              11:18:43,817 ERROR [ContextConfig] Marking this application unavailable due to previous error(s)
                              11:18:43,819 ERROR [StandardContext] Context [/idm] startup failed due to previous errors
                              11:18:43,822 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/idm state=Create mode=Manual requiredState=Installed
                              org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-i2vsla-fvgtbz39-1-fvgtdbni-9m/idm.war/ deployment failed
                               at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
                              
                              ...
                              
                              11:18:43,832 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/ state=PreReal mode=Manual requiredState=Real
                              org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-i2vsla-fvgtbz39-1-fvgtdbni-9m/idm.war/ deployment failed
                               at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:333)
                              
                              ...
                              
                              11:18:43,917 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
                              11:18:43,992 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                              
                              DEPLOYMENTS IN ERROR:
                               Deployment "vfszip:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/deploy/idm.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/home/jrutt/ProgramFiles/jboss/jboss-5.0.1.GA/server/default/tmp/3j011-i2vsla-fvgtbz39-1-fvgtdbni-9m/idm.war/ deployment failed
                              
                              


                              org.apache.xerces.* is being loaded from idm.war!/WEB-INF/lib/xercesImpl.jar.


                              • 13. Re: Cannot find method addChild with this signature
                                Jeff Rutt Newbie

                                Thanks! This worked!

                                Both of the things mentioned at http://www.jboss.org/community/wiki/useJBossWebClassLoaderinJBoss5 worked for me.

                                That is :
                                (1) Remove the WARClassLoaderDeployer from deployers/jbossweb.deploy/META-INF/war-deployers-jboss-beans.xml

                                (2) Define the classloading rules explicitly for the war (i.e. add WEB-INF/jboss-classloading.xml)

                                <?xml version="1.0" encoding="UTF-8"?>
                                
                                <classloading xmlns="urn:jboss:classloading:1.0"
                                 name="mywar.war"
                                 domain="DefaultDomain"
                                 export-all="NON_EMPTY"
                                 import-all="true">
                                </classloading>
                                


                                I tried each of these separately. I don't know if they would work together or not.

                                Unfortunately, I still needed to remove my "j2ee.jar" from WEB-INF/lib. If I kept this file in my WAR, I got "JSP compiler" errors, and also the "Cannot find method
                                addChild with this signature" error. Perhaps there's more tweaking to be done.