Problem
- Product Name: BES
- Product Version: 5.2.1
- Product Component: Naming Service
- Platform/OS Version: Any
All EJB clients suddenly can not get references of EJBs and on the BES server side, the event log shows the following error:
Event.log:
[Fri Sep 02 07:27:38 CDT 2005] stdout: com.kable.newsstand.ejblookupmanager.ServiceLocatorException: COS Name Service not registered with ORB under the name "NameService"
[Fri Sep 02 07:27:38 CDT 2005] stdout: at com.kable.newsstand.ejblookupmanager.EJBLookupManager.getInitialContext(EJBLookupManager.java:117)
...
Resolution
In this particular scenario, the user code was initializing the naming context with the Sun's JNDI Context Factory class using the "java.naming.factory.initial" property.
The solution for this issue is not to set the Sun's implementation instead of Borland's using the "java.naming.factory,initial" property. Basically, the property needs to commented in the user code as this property is already set in BES and it need not be overridden. The user code also needs to be recompiled and redeployed to the server. The BES server also needs to be restarted.
#BES
#ContextFactory
#java.naming.factory.initial
#NameService
#VisiBroker
#Security
#JNDI