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

后端 未结 7 565
说谎
说谎 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:14

    This can also happen in the following situation:

    project A is some library, a maven project in your eclipse. It has a class named org.exmaple.Foo which is in the src/test/java/ directory.

    in your project B where the error occurs you are try to access this class. But this isn't possible.

    Eclipse won't complain because it "knows" both classes. If you are running mvn clean install on the project that does not work maven will give you a proper error message.

    I think this erro can occur since Kepler but I am not sure. At least it is still present in Luna :)

提交回复
热议问题