Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5325

java.lang.LinkageError: loader constraint violation in interface itable initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.6.2
    • None
    • om
    • Windows 7 Enterprise Service pack 1, jboss-5.1.0.GA, axis2-1.6.2 (exploded war), rampart-1.6.2

    Description

      I have a working web service project using axis2 1.5.5 and rampart 1.6.0 deployed on JBoss. I tried to upgrade the axis2 and rampart versions to 1.6.2. When I use the 1.6.2 related jars and try to build the code, I got minor errors which I corrected (WSHandlerResult.getResults() now returns a List rather than a Vector which I was using before) and then tried to deploy this on JBoss. The service gets deployed but when I try to view the services (http://localhost:8080/axis2/) I get an error:

      ---------------------------------
      2012-05-21 13:43:29,177 [main] WARN com.ipswitch.messageway.perimeter.init.MWWSLifeCycle - Not able to load action handler, instantiating default handler
      2012-05-21 13:43:29,740 [main] INFO org.apache.axis2.deployment.ServiceDeployer - The MessageWayWebService.aar service, which is not valid, caused java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.om.impl.dom.DocumentImpl.getDomConfig()Lorg/w3c/dom/DOMConfiguration;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/axiom/om/impl/dom/DocumentImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Document have different Class objects for the type org/w3c/dom/DOMConfiguration used in the signature
      at org.apache.axiom.om.impl.dom.factory.OMDOMFactory.createOMDocument(OMDOMFactory.java:418)
      at org.apache.axiom.om.impl.builder.StAXOMBuilder.createDocument(StAXOMBuilder.java:183)
      at org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:105)
      at org.apache.axiom.om.impl.dom.factory.AbstractOMMetaFactory.internalCreateStAXOMBuilder(AbstractOMMetaFactory.java:81)
      at org.apache.axiom.om.impl.dom.factory.AbstractOMMetaFactory.createStAXOMBuilder(AbstractOMMetaFactory.java:91)
      at org.apache.axiom.om.OMXMLBuilderFactory.createStAXOMBuilder(OMXMLBuilderFactory.java:92)
      at org.apache.neethi.builders.converters.OMToDOMConverter.convert(OMToDOMConverter.java:37)
      at org.apache.neethi.builders.converters.OMToDOMConverter.convert(OMToDOMConverter.java:32)
      at org.apache.neethi.builders.converters.ConverterRegistry.convert(ConverterRegistry.java:159)
      at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:135)
      at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117)
      at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224)
      at org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174)
      at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124)
      at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:100)
      at org.apache.ws.secpolicy11.builders.X509TokenBuilder.build(X509TokenBuilder.java:77)
      at org.apache.ws.secpolicy11.builders.X509TokenBuilder.build(X509TokenBuilder.java:35)
      at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138)
      at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117)
      at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224)
      at org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174)
      at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124)
      at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:100)
      at org.apache.ws.secpolicy11.builders.InitiatorTokenBuilder.build(InitiatorTokenBuilder.java:40)
      at org.apache.ws.secpolicy11.builders.InitiatorTokenBuilder.build(InitiatorTokenBuilder.java:34)
      at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138)
      at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117)
      at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224)
      at org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174)
      at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124)
      at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:100)
      at org.apache.ws.secpolicy11.builders.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:43)
      at org.apache.ws.secpolicy11.builders.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:37)
      at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138)
      at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117)
      at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224)
      at org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:184)
      at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:217)
      at org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java:180)
      at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:215)
      at org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174)
      at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124)
      at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:100)
      at org.apache.axis2.deployment.DescriptionBuilder.processPolicyElements(DescriptionBuilder.java:639)
      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:308)
      at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
      at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
      at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143)
      at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
      at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
      at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
      at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
      at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy38.start(Unknown Source)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      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.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      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.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.start(ServiceController.java:460)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.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: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:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      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:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:662)
      ---------------------------------

      The list of Jars used in ...\axis2.war\WEB-INF\lib is given below:

      -------------------------------------------------------------------
      "apache-mime4j-core-0.7.2" "axiom-api-1.2.13" "axiom-dom-1.2.13" "axiom-impl-1.2.13" "axis2-adb-1.6.2" "axis2-adb-codegen-1.6.2" "axis2-clustering-1.6.2" "axis2-codegen-1.6.2" "axis2-corba-1.6.2" "axis2-fastinfoset-1.6.2" "axis2-java2wsdl-1.6.2" "axis2-jaxbri-1.6.2" "axis2-jaxws-1.6.2" "axis2-jibx-1.6.2" "axis2-json-1.6.2" "axis2-kernel-1.6.2" "axis2-metadata-1.6.2" "axis2-mtompolicy-1.6.2" "axis2-saaj-1.6.2" "axis2-soapmonitor-servlet-1.6.2" "axis2-spring-1.6.2" "axis2-transport-http-1.6.2" "axis2-transport-local-1.6.2" "axis2-xmlbeans-1.6.2" "bcel-5.1" "bcprov-jdk15-140" "commons-cli-1.2" "commons-codec-1.3" "commons-collections-3.1" "commons-fileupload-1.2" "commons-httpclient-3.1" "commons-io-1.4" "commons-lang-2.3" "commons-logging-1.1.1" "esapi-2.0GA" "geronimo-annotation_1.0_spec-1.1" "geronimo-jaxws_2.2_spec-1.0" "geronimo-jta_1.1_spec-1.1" "geronimo-saaj_1.3_spec-1.0.1" "geronimo-stax-api_1.0_spec-1.0.1" "geronimo-ws-metadata_2.0_spec-1.1.2" "httpcore-4.0" "jaxb-api-2.1" "jaxb-impl-2.1.7" "jaxb-xjc-2.1.7" "jaxen-1.1.1" "jaxws-tools-2.1.3" "jettison-1.0-RC2" "jibx-bind-1.2" "jibx-run-1.2" "joda-time-1.6.2" "jsr311-api-1.0" "juli-6.0.16" "log4j-1.2.15" "mail-1.4" "mex-1.6.2-impl" "neethi-3.0.2" "opensaml-2.5.1-1" "openws-1.4.2-1" "rampart-core-1.6.2" "rampart-policy-1.6.2" "rampart-trust-1.6.2" "regexp-1.2" "slf4j-api-1.5.5" "slf4j-jcl-1.5.5" "tribes-6.0.16" "velocity-1.5" "woden-api-1.0M9" "woden-impl-commons-1.0M9" "woden-impl-dom-1.0M9" "wsdl4j-1.6.2" "wss4j-1.6.4" "wstx-asl-3.2.9" "xalan-2.7.0" "xmlbeans-2.3.0" "xml-resolver-1.2" "XmlSchema-1.4.7" "xmlsec-1.4.6" "xmltooling-1.3.2-1" "activation-1.1" "antlr-2.7.7"
      -------------------------------------------------------------------

      Can you look into this and let me know what is the issue and how to solve it..

      Thanks,
      Aravind

      Attachments

        Activity

          People

            Unassigned Unassigned
            arvindps24 AravindPS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: