Affects Version/s: 3.1.2
Fix Version/s: None
I know that
GLASSFISH-17971 should've resolved the problem but I see that it does not
(and simply cannot) solve the problem in this case.
The exception I get is this:
For what I can see in the relevant code is the following:
- the ORB$2.evaluate calls ORBClassLoader.getClassLoader.loadClass(...)
- ORBClassLoader.getClassLoader() returns the Thread-ContextClassLoader
- in ApplicationLifecycle.deploy() the current Thread ContextClassLoader is set to the ClassLoader of the DeploymentContext
- the OSGiDeploymentContext internally only uses the Bundles' current ClassLoader or the APIClassLoader
What we need here would probably be the ConnectorClassLoader as well.
Also I wonder if implementing the following methods properly would help here:
Btw., the OSGi application has been deployed using asadmin deploy --type osgi, so not using plain FileInstall.