Jndi error when building in JBuilder 6 and deploying on Websphere 4.0 AE
0 posts in topic
Flat View  Flat View

Posted By:   Rosemarie_Leighton
Posted On:   Wednesday, May 15, 2002 12:15 AM

I was created a Data source in WSAD names jdbc/OracleDS and try to connect to Oracle DB. my code is something like: Object datasource = m_DataSources.get(sJNDIName); InitialContext ctx = Utility.getInitialContext(); datasource = ctx.lookup(sJNDIName); .. connection = ds.getConnection(sUserID, sPassword); The log message in console is: [11/8/03 16:11:32:827 ICT] 41368120 ConnectionFac I J2CA0122I: Resource reference jdbc/OracleDS could not be located, so default values of the following are used: [Resource-ref settings] res-auth: 1 (APPLICATION) res-isolation-level:    More>>


I am getting the following error when trying to test bean (entity) via JBuilder which links up to Websphere 4.0. Please can anyone help me to rectify the problem. I have looked in my admin console (WAS 4) and the jndi name is the same as the ibm-ejb-jar-bin.xmi and it can not find the bean... please see errors listed below.
-- Initializing bean access.
javax.naming.NameNotFoundException: diaryeb
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1435)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1115)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at za.co.mf.motrec.ejb.eb.diaryeb.DiaryEBTestClient1. (DiaryEBTestClient1.java:40)-- Failed initializing bean access.

at za.co.mf.motrec.ejb.eb.diaryeb.DiaryEBTestClient1.main(DiaryEBTestClient1.java:462)
-- Calling findAll()
-- Failed: findAll()
at za.co.mf.motrec.ejb.eb.diaryeb.DiaryEBTestClient1.findAll(DiaryEBTestClient1.java:161)
at za.co.mf.motrec.ejb.eb.diaryeb.DiaryEBTestClient1.main(DiaryEBTestClient1.java:470)
at za.co.mf.motrec.ejb.eb.diaryeb.DiaryEBTestClient1.findByPrimaryKey(DiaryEBTestClient1.java:132)-- Return value from findAll(): null.
-- Calling findByPrimaryKey(118)
-- Failed: findByPrimaryKey(118)

at za.co.mf.motrec.ejb.eb.diaryeb.DiaryEBTestClient1.main(DiaryEBTestClient1.java:471)
-- Return value from findByPrimaryKey(118): null.
Found # of diary-entries:

Please can anyone help asap and I need the environment urgently. Please respond to my email rleighton@financialiq.net.


About | Sitemap | Contact