Tuesday, June 27, 2017

Error encountered during prepare phase of deploying WebService - sun.reflect.annotation.TypeNotPresentExceptionProxy

<Nov 4, 2013 1:58:07 PM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1383595086824' for task '4'. Error is: 'weblogic.management.DeploymentException: Error encountered during prepare phase of deploying WebService module 'test-search-web-war.war'. sun.reflect.annotation.TypeNotPresentExceptionProxy'
weblogic.management.DeploymentException: Error encountered during prepare phase of deploying WebService module 'test-search-web-war.war'. sun.reflect.annotation.TypeNotPresentExceptionProxy
        at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:153)
        at weblogic.wsee.deploy.AppDeploymentExtensionFactory.prepare(AppDeploymentExtensionFactory.java:79)
        at weblogic.wsee.deploy.AppDeploymentExtensionFactory.access$100(AppDeploymentExtensionFactory.java:15)
        at weblogic.wsee.deploy.AppDeploymentExtensionFactory$1.prepare(AppDeploymentExtensionFactory.java:219)
        at weblogic.application.internal.flow.AppDeploymentExtensionFlow.prepare(AppDeploymentExtensionFlow.java:23)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
        at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
        at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
        at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
        Truncated. see log file for complete stacktrace
>

2 comments:

  1. It is most likely that the library for some of the annotation being used is not in the classpath in weblogic. Its possible that your IDE can resolve the annotation but its not packaged and made available during deployment in your ear file.

    ReplyDelete
  2. ArrayStoreException indicates that an attempt has been made to store the wrong type of object into an array of objects. Check for the annotations being used in your code and verify if its corresponding jar is included in the ear.

    ReplyDelete