java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.parsers.DocumentBuilder.setErrorHandler(Lorg/xml/sax/ErrorHandler;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/log4j/xml/DOMConfigurator, and the class loader (instance of <bootloader>) for resolved class, javax/xml/parsers/DocumentBuilder, have different Class objects for the type org/xml/sax/ErrorHandler used in the signature

Stack Overflow | Arun | 5 years 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

    Getting LinkageError while deploying application in JBOSS5

    Stack Overflow | 5 years ago | Arun
    java.lang.LinkageError: loader constraint violation: when resolving method "javax.xml.parsers.DocumentBuilder.setErrorHandler(Lorg/xml/sax/ErrorHandler;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/log4j/xml/DOMConfigurator, and the class loader (instance of <bootloader>) for resolved class, javax/xml/parsers/DocumentBuilder, have different Class objects for the type org/xml/sax/ErrorHandler used in the signature
  2. 0

    Grails User (Old Archive) - Consume web service in Grails app

    nabble.com | 10 months ago
    java.lang.LinkageError: loader constraint violation: when resolving interface method "org.w3c.dom.Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current class, org/apache/cxf/staxutils/StaxUtils, and the class loader (instance of <bootloader>) for resolved class, org/w3c/dom/Node, have different Class objects for the type org/w3c/dom/UserDataHandler used in the signature

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: when resolving method "javax.xml.parsers.DocumentBuilder.setErrorHandler(Lorg/xml/sax/ErrorHandler;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/log4j/xml/DOMConfigurator, and the class loader (instance of <bootloader>) for resolved class, javax/xml/parsers/DocumentBuilder, have different Class objects for the type org/xml/sax/ErrorHandler used in the signature

      at org.apache.log4j.xml.DOMConfigurator.doConfigure()
    2. Apache Log4j
      Logger.getLogger
      1. org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:708)
      2. org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      3. org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
      4. org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
      5. org.apache.log4j.Logger.getLogger(Logger.java:117)
      5 frames
    3. com.hmco.ssms
      AuthFilter.<clinit>
      1. com.hmco.ssms.servlet.filter.AuthFilter.<clinit>(AuthFilter.java:38)
      1 frame
    4. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    5. JBoss Application Server Tomcat
      TomcatInjectionContainer.newInstance
      1. org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264)
      2. org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
      2 frames
    6. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:220)
      2. org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
      5. org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
      5 frames
    7. JBoss Application Server Tomcat
      TomcatDeployment.performDeploy
      1. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
      2. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
      2 frames
    8. JBoss Application Server Server
      WebModule.start
      1. org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      2. org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      3. org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      3 frames
    9. 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:597)
      4 frames
    10. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      1 frame
    11. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      4 frames
    12. org.jboss.system
      ServiceProxy.invoke
      1. org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      1 frame
    13. Unknown
      $Proxy38.start
      1. $Proxy38.start(Unknown Source)
      1 frame
    14. org.jboss.system
      StartStopLifecycleAction.installAction
      1. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      2. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      2 frames
    15. JBoss Microcontainer Dependency
      AbstractControllerContext.install
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      4 frames
    16. org.jboss.system
      ServiceControllerContext.install
      1. org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      1 frame
    17. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      2. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      3. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      5. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      6 frames
    18. JBoss Application Server System
      ServiceDeployer.deploy
      1. org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      2. org.jboss.system.ServiceController.start(ServiceController.java:460)
      3. org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      4. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      5. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      5 frames
    19. JBoss Deployers SPI
      AbstractRealDeployer.deploy
      1. org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      2. org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      2 frames
    20. JBoss Deployers Impl
      DeployersImpl.install
      1. org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      3. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      4. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      5. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
      6. org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      6 frames
    21. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      7 frames
    22. JBoss Deployers Impl
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      2. org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      2 frames
    23. JBoss Application Server System
      AbstractProfileService.install
      1. org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      2. org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      3. org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      4. org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      4 frames
    24. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      7 frames
    25. JBoss Application Server System
      AbstractProfileService.activateProfile
      1. org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      1 frame
    26. org.jboss.system
      ProfileServiceBootstrap.start
      1. org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      1 frame
    27. org.jboss.bootstrap
      AbstractServerImpl.start
      1. org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      1 frame
    28. JBoss Application Server Server
      Main$1.run
      1. org.jboss.Main.boot(Main.java:221)
      2. org.jboss.Main$1.run(Main.java:556)
      2 frames
    29. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame