This content has been marked as final.
Show 1 reply
-
1. Re: Strange JNDI problem
rverlind Jun 22, 2004 5:31 AM (in response to rverlind)The intialisation of the JNDI from within the Eclipse plugin is working now using some ClassLoader changing :
ClassLoader old = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(plugin.class.getClassLoader()); // Initialise the JNDI environment Thread.currentThread().setContextClassLoader(old);
Now the only problem remaining is the cache of the ServiceLocator that uses HomeHandles to cache as a reference to the EJBHome objects.
Only, when trying to get an EJBHome object usinghomeHandle.getEJBHome()
the same error occurs :
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
vub.starlab.ds.bdelegate.EJB.BDelegateExceptionEJB: Service Locator Exception in OntoBaseDelegate
Ruben