LinkageErrorWithJBoss5Java6

Problem

 

 

While starting JBoss, you get

 

 

Error installing to Create: name=ManagedConnectionFact oryParserDeployer state=Configured java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (fr om vfszip:/C:/Java/jboss-5.0.0.CR1/lib/jaxb-impl.jar/com/sun/xml/bind/v2/model/impl/ModelBuilder.cla ss) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap class loader. (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(ManagedConnect ionFactoryParserDeployer.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(ReflectMethodInfoImp l.java:110)         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrappe r.execute(KernelControllerContextAction.java:241)         at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrappe r(KernelControllerContextAction.java:109)         at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(Kerne lControllerContextAction.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(Sim pleControllerContextAction.java:62)         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControlle rContextAction.java:71)         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerC ontextActions.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:78 4)         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9 12)         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:8 34)         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(Abstra ctSimpleRealDeployer.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.ja va:970)         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.ja va: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:78 4)         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:9 12)         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:8 34)         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(ProfileService Bootstrap.java:250)         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootst rap.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)     

 

Solution

 

 

You probably are using an older version of Java 1.6. Download the latest available update of Java 1.6 from the Sun site and use that with JBoss. See this forum discussion for details.