Skip to Main Content

Java User Groups

LinkageError with on WebLogic

Rod AllenJan 18 2018 — edited Jan 21 2018

Hi All,

We are having a problem with our software when running on WebLogic Its an Eclipse RAP based war file that works fine when deployed to WebLogic 12.1.3 but when we try to deploy it to WebLogic we are getting a java.lang.LinkageError, specifically

java.lang.LinkageError: loader constraint violation: loader (instance of .....) previously initiated loading for a different type with name "org/aopalliance/aop/Advice"

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(

    at com.sun.proxy.$Proxy108.<clinit>(Unknown Source)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

    at java.lang.reflect.Constructor.newInstance(

    at java.lang.reflect.Proxy.newProxyInstance(

    at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(

    at org.springframework.aop.framework.ProxyFactory.getProxy(

We have narrowed it down to a new jar that was added in WebLogic


This appears to be clashing with this file in our war WEB-INF\plugins\

1) Has anyone seen anything like this when upgrading their applications from Weblogic 12.1.3 to ?

2) Does anyone know what this file org.glassfish.hk2.external.aopalliance-repackaged.jar does and why it was added to WebLogic? We tried removing it but WebLogic wont start.

3) Can anyone suggest a workaround to avoid the clash? We have tried using this in weblogic.xml but it had no effect :-




Post Details
Added on Jan 18 2018