sun.reflect.annotation.TypeNotPresentExceptionProxy error when deploy web-ear

后端 未结 7 534
说谎
说谎 2020-12-17 07:20

When I try to deploy ejd-ear, web-ear on to glassfish server. I added an ejb client dependency in web project. The ejb-ear deploys successfully. But when I try to deploy web

7条回答
  •  春和景丽
    2020-12-17 08:12

    Solution:

    1. Connect with debug to Glassfish server
    2. Put break point into line
      • java.lang.Class.initAnnotationsIfNecessary(Class.java:3070)
    3. Deploy your application.

    While deploying you will stop several times at this break point. See this reference and remember the last before deployment error arise. Than check Annotations in last "this" class. You can also put break point into AnnotationParser.parseClassArray method, but it is compiled code and break point on the method is very slow. (In my case with method break point I could not depoy application at last).

提交回复
热议问题