This one starts to drive me completely nuts ...
I want to create a Glassfish client application using Maven.
For that, I\'ve added the requried gf-client dep
For a reason I not totally understand, there is a configured Context classloader when run in application. This classloader seems to use some kind of OSGi naming restriction.
As a consequence, to avoid the bug, I reset the context class loader :
Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
And it worked !
Have you tried using the ACC? Your solution seems contrived.