File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader" Watch "java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader" New topic
Author

java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader

Shanmugam Muthukumarasamy
Ranch Hand

Joined: Jan 11, 2003
Posts: 83
I am getting the following error while I start my JBoss 5.0 server with JRE 1.6. Any idea?

00:45:34,662 INFO [ServerImpl] Starting JBoss (Microcontainer)...
00:45:34,662 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
00:45:34,662 INFO [ServerImpl] Bootstrap URL: null
00:45:34,662 INFO [ServerImpl] Home Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA
00:45:34,662 INFO [ServerImpl] Home URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/
00:45:34,662 INFO [ServerImpl] Library URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/lib/
00:45:34,662 INFO [ServerImpl] Patch URL: null
00:45:34,662 INFO [ServerImpl] Common Base URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/common/
00:45:34,663 INFO [ServerImpl] Common Library URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/common/lib/
00:45:34,663 INFO [ServerImpl] Server Name: default
00:45:34,663 INFO [ServerImpl] Server Base Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server
00:45:34,663 INFO [ServerImpl] Server Base URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/server/
00:45:34,663 INFO [ServerImpl] Server Config URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/server/default/conf/
00:45:34,663 INFO [ServerImpl] Server Home Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default
00:45:34,663 INFO [ServerImpl] Server Home URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/server/default/
00:45:34,663 INFO [ServerImpl] Server Data Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default\data
00:45:34,663 INFO [ServerImpl] Server Library URL: file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/server/default/lib/
00:45:34,663 INFO [ServerImpl] Server Log Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default\log
00:45:34,663 INFO [ServerImpl] Server Native Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default\tmp\native
00:45:34,663 INFO [ServerImpl] Server Temp Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default\tmp
00:45:34,663 INFO [ServerImpl] Server Temp Deploy Dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default\tmp\deploy
00:45:35,116 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/MY-WORKSHOP/JBoss%205.0/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
00:45:35,599 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
00:45:35,599 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
00:45:35,974 INFO [CopyMechanism] VFS temp dir: C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server\default\tmp
00:45:35,974 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
00:45:37,457 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
00:45:37,457 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0-b105,Sun Microsystems Inc.
00:45:37,457 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
00:45:37,520 INFO [JMXKernel] Legacy JMX core initialized
00:45:39,548 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@9549af(root=C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
00:45:39,548 INFO [ProfileImpl] Using repository rg.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@9549af(root=C:\MY-WORKSHOP\JBoss 5.0\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
00:45:39,548 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@1cd427a{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
00:45:45,383 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
00:45:49,752 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:/MY-WORKSHOP/JBoss 5.0/jboss-5.0.0.GA/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:432)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:297)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.create(ManagedConnectionFactoryParserDeployer.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
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:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:297)
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(Unknown Source)
00:45:52,719 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
00:45:52,719 INFO [NativeServerConfig] 3.0.4.SP1
00:45:54,842 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:/C:/MY-WORKSHOP/JBoss 5.0/jboss-5.0.0.GA/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/)


00:45:54,842 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 20s:179ms


SJCP 1.4<br />SCWCD 1.4<br />SCEA
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

See this


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader