Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JNDI problem in client application on WSAD5

3 views
Skip to first unread message

Martin Soltis

unread,
May 21, 2003, 7:21:08 AM5/21/03
to
Hi,
I made Hello World EJB application. Beans work perfectly, but I want to run
them from Application Client. I wrote one, but on JNDI connection it
throws exception. I am using lunchClient.bat.

on row:
initialContext.lookup("ejb/Bean");

exception:

Caught an unexpected exception!
javax.naming.ServiceUnavailableException: A communication failure occurred
while
attempting to obtain an initial context using the provider url:
"corbaloc:iiop:
localhost". Make sure that the host and port information is correct and that
the
server identified by the provider url is a running name server. If no port
num
ber is specified, the default port number 2809 is used. Other possible
causes in
clude the network environment or workstation network configuration. Root
except
ion is org.omg.CORBA.OBJ_ADAPTER: ORB_CONNECT_ERROR (5) - couldn't get
Server Su
bcontract minor code: 4942FB8F completed: No
at com.ibm.rmi.corba.ORB.connect(ORB.java:2723)
at com.ibm.rmi.corba.ORB.createServantIOR(ORB.java:3332)
at com.ibm.rmi.corba.ORB.getServantIOR(ORB.java:3317)
at com.ibm.rmi.iiop.ORB.getServantIOR(ORB.java:701)
at com.ibm.CORBA.iiop.ORB.getServantIOR(ORB.java:490)
at
com.ibm.CORBA.iiop.ClientDelegate.getServiceContexts(ClientDelegate.j
ava:1015)
at com.ibm.rmi.iiop.GIOPImpl.createRequest(GIOPImpl.java:142)
at com.ibm.rmi.iiop.GIOPImpl.createRequest(GIOPImpl.java:101)
at
com.ibm.CORBA.iiop.ClientDelegate._createRequest(ClientDelegate.java:
2411)
at
com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1
276)
at
com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1
175)
at
com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1928)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:245)
at
com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServic
eStub.java:37)
at
com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInit
CtxFactory.java:1090)
at
com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(Wsn
InitCtxFactory.java:676)
at
com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:604)
at
com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:478)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at
com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:40
8)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at
com.ibm.etools.ejb.client.runtime.AbstractEJBFactory.lookupEJBHome(Ab
stractEJBFactory.java:174)
at
com.ibm.etools.ejb.client.runtime.AbstractEJBFactory.acquireEJBHome(A
bstractEJBFactory.java:65)
at sk.CartFactory.acquireCartHome(CartFactory.java:30)
at CartClient.main(CartClient.java:19)
at java.lang.reflect.Method.invoke(Native Method)
at
com.ibm.websphere.client.applicationclient.launchClient.createContain
erAndLaunchApp(launchClient.java:616)
at
com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
ient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)


Martin Soltis

unread,
Jun 13, 2003, 4:28:42 AM6/13/03
to
WSAD through instalation didn't setup PATHs in configuration files, and this
exception invoked bad PATHs in configuration file sas.client.props.
Amazing

Martin


"Martin Soltis" <mso...@trask.cz> píąe v diskusním příspěvku
news:bafn72$3uqe$1...@news.boulder.ibm.com...

0 new messages