DataSource lookup problem from WebSphere 5.1 Stand alone Client Program
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jothibala_subramanian
Posted On:   Monday, September 6, 2004 11:54 PM

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.putContext.PROVIDER_URL,"corbaloc::ssunicc01.aspac.citicorp.com:5822/NameServiceServerRoot"); 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=8   More>>

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.putContext.PROVIDER_URL,"corbaloc::ssunicc01.aspac.citicorp.com:5822/NameServiceServerRoot");
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:O=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:omg.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:omg.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)

   <<Less

Re: DataSource lookup problem from WebSphere 5.1 Stand alone Client Program

Posted By:   Anonymous  
Posted On:   Thursday, November 18, 2004 12:05 PM

I do have the smae problem. Are you able to solve it. Can you let me know how I need to fix this.

Thanks,
Sunitha.

Re: DataSource lookup problem from WebSphere 5.1 Stand alone Client Program

Posted By:   Prasanna_Talakanti  
Posted On:   Monday, September 13, 2004 05:55 AM

You should assign a different JRE(click on runningman==>Run==>pick the java class you want run==>JRE(right pane==>Pick a jre other than default)), The classes required for datasource look up are not loaded, if you pick default eclipse jre, hope this helps.
About | Sitemap | Contact