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
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 :)