When Accessing Shared Libraries from EJB Application Getting the Error: weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class

(Doc ID 1337351.1)

Last updated on OCTOBER 26, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.1 and later
Information in this document applies to any platform.


When deploying EJB3 Application packaged in JAR file on WLS10.3.5 and it references shared libraries through a META-INF/weblogic-application.xml file getting the following Exception:

[EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: .
Error There are 1 nested errors: weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class "Class_Name" in Jar "JAR_Path/JAR_Name": java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

And the following error is visualized the console:

[EJB:011023]An error occurred while reading the deployment descriptor. The error was:
Error processing annotations: .
       at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:469)
       at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
       at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
       at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
 Caused By: weblogic.utils.ErrorCollectionException:
 There are 1 nested errors:
 weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class


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