5 Replies Latest reply on Jun 19, 2008 10:49 PM by 666705

    Deployment Failed: java.lang.LinkageError: loader constraints violated

    666705
      Hope someone here can help me out.

      I created a Web Service using Axis2.

      In my weblogic.xml, <prefer-web-inf-classes> is "true".

      The war file was deployed to several WebLogic 9.x domains.
      Most of the deployments were successful except in 2 domains with the following exception:

      java.lang.LinkageError: loader constraints violated when linking org/xml/sax/InputSource class
      at org.apache.axis2.deployment.DeploymentEngine.populateService(DeploymentEngine.java:392)
      at org.apache.axis2.deployment.DeploymentEngine.loadServicesFromUrl(DeploymentEngine.java:185)
      at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:279)


      For these 2 domains, there are a bunch of jars file under <DOMAIN>/lib. e.g. xml-apis-2.6.2.jar, xercesImpl.jar ...

      Looks like those jar files are conflicting with my WEB-INF/lib.

      Does anyone know how I can resolve this issue?

      Thanks in advance,
      Terry