5 Replies Latest reply on Jan 16, 2009 6:02 AM by uttam kumar

    Error starting JBoss 5.0 GA

    uttam kumar Newbie

      hi, i am migrating the existing app from jboss 4 to jboss 5. while doing so, i have copied some jars into jboss.
      now while starting up the jboss i am getting the following error and i cant understand how to solve it :-

      10:56:32,271 DEBUG [AbstractManagedObjectFactory] Set ICF for: class org.jboss.system.metadata.ServiceMetaData, to: org.jboss.system.deployers.managed.ServiceMetaDataICF@5629d
      10:56:32,396 ERROR [AbstractKernelController] Error installing to Start: name=SARDeployer state=Create
      java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
      at org.jboss.deployers.vfs.spi.deployer.JAXPDeployer$1.setFeature(JAXPDeployer.java:149)
      at org.jboss.deployers.vfs.spi.deployer.JAXPDeployer$1.setFeature(JAXPDeployer.java:147)
      at org.jboss.deployers.vfs.spi.deployer.UnmarshallerFactoryDeployer.start(UnmarshallerFactoryDeployer.java:82)
      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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
      at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
      at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
      at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
      at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
      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.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.install(AbstractController.java:774)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
      at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
      at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
      at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
      at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:144)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)
      10:56:32,568 DEBUG [DeployersImpl] Added deployer org.jboss.system.deployers.ServiceClassLoaderDeployer@1ee475a for stage PostParse
      org.jboss.system.deployers.ServiceClassLoaderDeployer@1ee475a{inputs=[org.jboss.system.metadata.ServiceDeployment] outputs=[org.jboss.classloading.spi.metadata.ClassLoadingMetaData]}



      and at the end of the log :-

      *** DEPLOYMENTS IN ERROR: Name -> Error
      SARDeployer -> java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
      at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:148)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)


      please advice me to solve it.
      Thanks in advance...

        • 1. Re: Error starting JBoss 5.0 GA
          jaikiran pai Master

           

          while doing so, i have copied some jars into jboss.


          Which jars have you copied and where?

          • 2. Re: Error starting JBoss 5.0 GA
            uttam kumar Newbie

            in jboss5.0GA/lib folder I have copied
            dom4j.jar
            jaxen.jar
            jdom.jar
            namespace.jar
            webdavlib.;jar
            xercesImpl.jar
            xml-apis.jar

            in Jboss5.0GA/client folder :-
            axis-ws4ee.jar
            commons-discovery.jar
            gnu-regexp.jar
            jboss-jaas.jar
            jboss-net-client.jar
            jboss-net-client.jar
            jcert.jar
            jmx-connector-client-factor.jar
            jmx-ejb-connector-client.jar
            jmx-rmi-connector-client.jar
            jnet.jar
            jsse.jar
            namespace.jar
            xdoclet-module-jboss-net.jar

            I am a naive in Jboss and I go through the release notes of Jboss5.0 but is there any other doc related to jboss5.0GA from where I can get more technical details ?

            • 3. Re: Error starting JBoss 5.0 GA
              uttam kumar Newbie

              b4 getting this error, I have got another error

              Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser.isXIncludeAware()Z
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.logParserInfo(SaxJBo
              ssXBParser.java:235)
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBPar
              ser.java:93)
              at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:56
              )
              at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newU
              nmarshaller(UnmarshallerFactory.java:96)
              at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:50
              )
              at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java
              :129)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
              394)
              at org.jboss.Main.boot(Main.java:209)
              at org.jboss.Main$1.run(Main.java:547)
              at java.lang.Thread.run(Thread.java:619)

              I solve this by coping the older version of jboss-xml-binding.jar file into Jboss5.0GA/lib foler.

              • 4. Re: Error starting JBoss 5.0 GA
                jaikiran pai Master

                You should not be overwriting the jar files that JBoss ships with. You should be packaging your required jar files within your application and if needed configure a scoped classloader for your application. See these wiki articles:

                http://www.jboss.org/community/docs/DOC-10290

                http://www.jboss.org/community/docs/DOC-9288

                • 5. Re: Error starting JBoss 5.0 GA
                  uttam kumar Newbie

                  if i dont overrite the above jar i get the above stated error.......in that scenario wht is the reason for that exception ?