java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class

openejb-users | Jeremy Whitlock | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Maven Issues Running OpenEJB Tests

    openejb-users | 1 decade ago | Jeremy Whitlock
    java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
  2. 0

    Maven Issues Running OpenEJB Tests

    openejb-users | 1 decade ago | Jeremy Whitlock
    java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
  3. 0

    Maven Issues Running OpenEJB Tests

    openejb-users | 1 decade ago | Jeremy Whitlock
    java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A problem apear on weblogic 10.3,but tomcat is worked

    Coderanch | 7 years ago | zhiquan mai
    java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type
  6. 0

    A problem apear on weblogic 10.3,but tomcat is worked [Solved] (Web Services forum at JavaRanch)

    coderanch.com | 2 years ago
    java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different Class objects for that type

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraints violated when linking javax/xml/namespace/QName class

      at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>()
    2. Old JAXB Runtime
      ContextFactory.createContext
      1. com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:186)
      2. com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:25)
      3. com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:77)
      4. com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:40)
      5. com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:97)
      6. com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:43)
      7. com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:345)
      8. com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:217)
      9. com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
      10. com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
      10 frames
    3. Java RT
      JAXBContext.newInstance
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      5. javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
      6. javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
      7. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
      8. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
      8 frames
    4. org.apache.openejb
      ConfigurationFactory.getOpenEjbConfiguration
      1. org.apache.openejb.alt.config.JaxbUnmarshaller.<init>(JaxbUnmarshaller.java:56)
      2. org.apache.openejb.alt.config.JaxbUnmarshaller.unmarshal(JaxbUnmarshaller.java:64)
      3. org.apache.openejb.alt.config.EjbJarUtils.readEjbJar(EjbJarUtils.java:91)
      4. org.apache.openejb.alt.config.EjbJarUtils.<init>(EjbJarUtils.java:63)
      5. org.apache.openejb.alt.config.DeploymentLoader.loadDeploymentsList(DeploymentLoader.java:243)
      6. org.apache.openejb.alt.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:146)
      6 frames
    5. OpenEJB :: OSGi :: Core
      OpenEJB.init
      1. org.apache.openejb.assembler.classic.Assembler.init(Assembler.java:99)
      2. org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:136)
      3. org.apache.openejb.OpenEJB.init(OpenEJB.java:275)
      4. org.apache.openejb.OpenEJB.init(OpenEJB.java:260)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. OpenEJB :: Container :: Loader
      OpenEJBInstance.init
      1. org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
      1 frame
    8. OpenEJB :: Server :: Client
      LocalInitialContextFactory.getInitialContext
      1. org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
      2. org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:39)
      2 frames
    9. Java RT
      InitialContext.<init>
      1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      3. javax.naming.InitialContext.init(InitialContext.java:223)
      4. javax.naming.InitialContext.<init>(InitialContext.java:197)
      4 frames
    10. org.acme
      FriendlyPersonTest.setUp
      1. org.acme.FriendlyPersonTest.setUp(FriendlyPersonTest.java:41)
      1 frame
    11. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runBare(TestCase.java:125)
      2. junit.framework.TestResult$1.protect(TestResult.java:106)
      3. junit.framework.TestResult.runProtected(TestResult.java:124)
      4. junit.framework.TestResult.run(TestResult.java:109)
      5. junit.framework.TestCase.run(TestCase.java:118)
      6. junit.framework.TestSuite.runTest(TestSuite.java:208)
      7. junit.framework.TestSuite.run(TestSuite.java:203)
      7 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    13. org.codehaus.surefire
      Surefire.run
      1. org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246)
      2. org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220)
      3. org.codehaus.surefire.Surefire.executeBattery(Surefire.java:204)
      4. org.codehaus.surefire.Surefire.run(Surefire.java:153)
      5. org.codehaus.surefire.Surefire.run(Surefire.java:77)
      5 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    15. org.codehaus.surefire
      SurefireBooter.run
      1. org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
      1 frame
    16. org.apache.maven
      SurefirePlugin.execute
      1. org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:303)
      1 frame
    17. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
      1 frame
    18. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
      8 frames
    19. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
      1 frame
    20. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    21. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames