• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

DataSource lookup problem from WebSphere 5.1 Stand alone Client Program

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
We don't have time to be charming! Quick, read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic