11 Replies Latest reply on Jul 1, 2008 12:20 PM by jaikiran

    LinkageError starting JBossAS 5.0.0CR1

    legolas

      Hi all,

      I've just downloaded and unzipped the JBossAS 5.0.0CR1 package, and eager as I am, I immediately started it using bin\run.bat.
      This error appeared on the console:

      14:58:48,222 ERROR [AbstractKernelController] Error installing to Create: name=ManagedConnectionFactoryParserDeployer state=Configured
      java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from vfszip:/C:/Java/jboss-5.0.0.CR1/lib/jaxb-impl.jar/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
       at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
       at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
       at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
       at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
       at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
       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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
       at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
       at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
       at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
       at org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.create(ManagedConnectionFactoryParserDeployer.java:120)
       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:56)
       at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
       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:45)
       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:1392)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442)
       at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
       at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.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:174)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:250)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:544)
       at java.lang.Thread.run(Thread.java:619)


      I am running JBoss on a Windows Vista SP1 machine with a sun JVM build 1.6.0_04-b12.

      Did I forget a configuration step, or should this run OOTB?

      Thanks,
      Marcel

        • 1. Re: LinkageError starting JBossAS 5.0.0CR1
          jaikiran

          Did you do any changes to the clean JBoss? Also do you have an jaxb related jar file in your classpath which might be causing this conflict? I have downloaded CR1 and have been able to get it running with this issue.

          • 2. Re: LinkageError starting JBossAS 5.0.0CR1
            legolas

            No I haven't changed anything to the JBoss installation nor to the JVM installation.
            The classpath does not contain any jaxb related jar outside of the default as supplied with JBoss and the JDK

            Marcel

            • 3. Re: LinkageError starting JBossAS 5.0.0CR1
              jaikiran

               

              "jaikiran" wrote:
              I have downloaded CR1 and have been able to get it running with this issue.


              Spoke too soon :) Was using JDK 5 with JBoss-5.0 CR1 and everything works. Switched to Java 1.6 and i see the same LinkageErrors:
              18:45:53,619 INFO [CopyMechanism] VFS temp dir: D:\jboss-5.0.0.CR1\server\jaikiran\tmp
              18:45:53,619 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
              18:45:58,307 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
              18:45:58,307 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_03-b05,Sun Microsystems Inc.
              18:45:58,307 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
              18:45:58,401 INFO [JMXKernel] Legacy JMX core initialized
              18:46:00,963 INFO [MetaDataAwareProfile] Using profile root:D:\jboss-5.0.0.CR1\server\jaikiran
              18:46:05,557 INFO [WebService] Using RMI server codebase: http://ps3346:8083/
              18:46:12,698 ERROR [AbstractKernelController] Error installing to Create: name=ManagedConnectionFactoryParserDeployer state=Configured
              java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from vfszip:/D:/jboss-5.0.0.CR1/lib/jaxb-impl.jar/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
               at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
               at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
               at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
               at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
               at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
               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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
               at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
               at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
               at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
               at org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.create(ManagedConnectionFactoryParserDeployer.java:120)
               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:56)
               at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
               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:45)
               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:1392)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442)
               at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
               at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.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:174)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
               at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
               at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
               at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:250)
               at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
               at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
               at org.jboss.Main.boot(Main.java:209)
               at org.jboss.Main$1.run(Main.java:544)
               at java.lang.Thread.run(Thread.java:619)
              18:46:18,526 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
              
              *** CONTEXTS IN ERROR: Name -> Error
              
              ManagedConnectionFactoryParserDeployer -> java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from vfszip:/D:/jboss-5.0.0.CR1/lib/jaxb-impl.jar/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
              
              
              18:46:18,526 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200806301254)] Started in 27s:438ms
              


              • 4. Re: LinkageError starting JBossAS 5.0.0CR1
                jaikiran

                Based on what i see in one of the comments in JIRA issue, i copied %JBOSS_HOME%/lib/jaxb-api.jar to %JBOSS_HOME%\lib\endorsed. Restarted JBoss with Java 1.6. This time it booted without any errors.

                P.S: My sample application does not have webservices, so i am not sure if only this jar needs to be copied. There might be other jars too, as mentioned in one of the comments at http://jira.jboss.com/jira/browse/JBWS-1439

                • 5. Re: LinkageError starting JBossAS 5.0.0CR1
                  dimitris

                  Can you please specify O/S and JDK make/version?

                  You probably need to move to the latest jdk1.6

                  • 6. Re: LinkageError starting JBossAS 5.0.0CR1
                    legolas

                    Thanks this seems to do the job.
                    I have no appliciaton at all running in it, just extracted the zip and ran it.
                    Does this have any side-effect when running on JDK 5?

                    If not this could be made the default.

                    Ciao,
                    Marcel

                    • 7. Re: LinkageError starting JBossAS 5.0.0CR1
                      dimitris

                      Again, which jdk are you using?

                      JDK6 Update 4 introduced a significant change:

                      http://weblogs.java.net/blog/ramapulavarthi/archive/2008/01/jaxws_21_and_ja.html

                      • 8. Re: LinkageError starting JBossAS 5.0.0CR1
                        jaikiran

                         

                        "dimitris@jboss.org" wrote:
                        Can you please specify O/S and JDK make/version?

                        You probably need to move to the latest jdk1.6


                        19:46:35,039 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                        19:46:39,774 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
                        19:46:39,774 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_03-b05,Sun Microsystems Inc.
                        19:46:39,774 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86


                        I'll see if there's a latest JDK 1.6 version available and try that one.

                        • 9. Re: LinkageError starting JBossAS 5.0.0CR1
                          jaikiran

                          Downloaded the latest available version of Sun JDK 1.6 (Java SE 6 Update 10 Beta). A clean installation of JBoss CR1 with this version boots without any errors.

                          20:21:57,171 INFO [CopyMechanism] VFS temp dir: D:\jboss-5.0.0.CR1\server\jaikiran\tmp
                          20:21:57,171 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                          20:22:01,577 INFO [ServerInfo] Java version: 1.6.0_10-beta,Sun Microsystems Inc.
                          20:22:01,577 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.0-b12,Sun Microsystems Inc.
                          20:22:01,577 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86


                          • 10. Re: LinkageError starting JBossAS 5.0.0CR1
                            dimitris

                            See? :-)

                            • 11. Re: LinkageError starting JBossAS 5.0.0CR1
                              jaikiran

                               

                              "dimitris@jboss.org" wrote:
                              See? :-)


                              Yep, you were right. Not a JBoss issue :-)