This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes DataSource lookup problem from WebSphere 5.1 Stand alone Client Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "DataSource lookup problem from WebSphere 5.1 Stand alone Client Program" Watch "DataSource lookup problem from WebSphere 5.1 Stand alone Client Program" New topic
Author

DataSource lookup problem from WebSphere 5.1 Stand alone Client Program

balasg jothi
Greenhorn

Joined: Sep 06, 2004
Posts: 6
Hi,

I am trying to access the datasource defined in the FRAMEWORK_APP server, but it giving the following error.

code here:
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL,"iiop://ssunicc01.aspac.citicorp.com:2809");
ctx = new InitialContext(env);
System.out.println("test 2");
DataSource ds = (DataSource)ctx.lookup("ssunicc01.ND.Cell/nodes/ssunicc01.node/servers/FRAMEWORK_APP/jdbc/FW_DB2_CON");
System.out.println("test 3");

Any body help on the prpblem?


thanks
bala

Exception in thread "P=860585 =0:CT" javax.naming.NameNotFoundException: Context: ssunicc01.ND.Cell/nodes/ssunicc01.node/servers/
nodeagent, name: ssunicc01.ND.Cell/nodes/ssunicc01.node/servers/FRAMEWORK_APP/jdbc/FW_DB2_CON: First component in name ssunicc01.ND.Cell/nodes/ssunicc01.node/servers/FRAMEWORK_APP/jdbc/FW_DB2_CON not found. [Root exception is org.omg.CosNaming.NamingContextPac
kage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0]
at com.ibm.ws.naming.jndicos.CNContextImpl.processNotFoundException(CNContextImpl.java:3840)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1527)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at citibank.test.DataSourceClient.main(DataSourceClient.java:34)
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:85)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
 
wood burning stoves
 
subject: DataSource lookup problem from WebSphere 5.1 Stand alone Client Program
 
Similar Threads
Unable to lookup JMS resources NotFound in WAS
Websphere 6.1.0.0 Lookup
JNDI lookup, First component in name xx not found
Queue Connection
Issues testing Session Bean