| Rohit Gupta 2006-09-04, 7:32 am |
| Hi,
I am facing a problem deploying J2EE application in a clustered Websphere 5.1 Application Server.
The code we are trying to lookup is shown below & working fine with the single server.
/ ****************************************
*************************/
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
String _strProviderURL = "corbaloc:iiop:localhost:2809";
env.put(Context.PROVIDER_URL, _strProviderURL);
context = new InitialContext(env);
// Get the object for the supplied jndi name and put it in the
// cache
PortableRemoteObject.narrow(context.lookup("INQUIRY_FACADE_JNDI"),
InquiryFacadeHome.class);
/ ****************************************
*************************/
My war is installed on Portal server & from war, I'm trying to lookup Remote Stateless Session Bean deployed on App server installed on the same machine.
The error I'm getting is :
[2006-08-30 12:43:29,116] ERROR InquiryCommand.getFacadeComponent(50) - PortalBaseException occoured :: javax.naming.NameNotFoundException: Context: HOANA01Network/nodes/HOWPS02/servers/nodeagent, name: INQUIRY_FACADE_JNDI: First component in name INQUIRY
_FACADE_JNDI not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
If anyone can throw some light on the above, taht'll be great help.
Regards,
Rohit
|