WLS 10.3: java.lang.LinkageError: loader constraint violation: when resolving interface method (Doc ID 1233383.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.2 and later
Information in this document applies to any platform.
***Checked for relevance on 16-Nov-2012***

Symptoms

If you deploy an axis webservices application on OC4J application server, you will notice that it works fine. On migrating those webservices from OC4J to Oracle WebLogic 11g and on accessing the WSDL file of the webservice in Oracle WebLogic 11g server you will notice the below error:

Error:

AXIS error
Sorry, something seems to have gone wrong... here are the details:

Exception - java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.wsdl.Definition.getBinding(Ljavax/xml/namespace/QName;)Ljavax/wsdl/Binding;"
 the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader)
of the current class, org/apache/axis/wsdl/fromJava/Emitter, and the class loader
 (instance of sun/misc/Launcher$AppClassLoader) for resolved class, javax/wsdl/Definition,
 have different Class objects for the type javax/xml/namespace/QName used in the signature

Changes

Migrating applications from OC4J to WLS 11g.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms