my dog learned polymorphism*
The moose likes Websphere and the fly likes NameNotFoundException !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "NameNotFoundException !!" Watch "NameNotFoundException !!" New topic
Author

NameNotFoundException !!

Suchit Prasanna
Greenhorn

Joined: Jan 21, 2002
Posts: 8
hi all,
i am trying to run an entity bean which comes with the tutorial with Websphere 4.0, Single Server Edition. The tutorail is called :
6.7.5: Advanced application assembly and deployment tutorial -- CMP bean application
I do everything exactly as mentioned in the tutorial and everything goes fine. but i get this exception when trying to run the cleint.
Root exception is javax.naming.NameNotFoundException: com/ibm/websphere/gettingstarted/ejbs/SimpleContainerManagedHome
Can anyone help please ?
Suchit


Regards<br />Suchit
Meghana Reddy
Ranch Hand

Joined: Jan 29, 2002
Posts: 76
hi there,

it seems to b a JNDI problem...check the JNDI name which u have mentioned in AAT...
u can always check whether ur EJB has deployed r not and if deployed then by what JNDI name...
the utlity for this is dumpnamespace. at the command prompt type
c:\>dumpnamespace
this'll show u the JNDI tree which the contains the JNDI names of all applications which the server is currently running...
Regards..
MeghanA


Meghana Reddy
Suchit Prasanna
Greenhorn

Joined: Jan 21, 2002
Posts: 8
Hi Meghna,
I did as u said. But i am afraid there seems to be an error there also. i am copying the relevant part of the output of dumpnamespace below. if u will notice carefully no 14,15 and 16 are correct. but no 17 says some error. and i think that is the place where my bean's JNDI name should appear. i think so because just after that the JNDI name (jdbc/GsDataSource) of the DataSource associated with my bean is listed.
So what is this error ? how was this introduced ? may i add that i installed the bean from the command line using the SEAppInstall utitlity and everything went fine...exactly as mentioned in the tutorial. and another thing is that when i install any bean from the command line does it appear in the admin console under the "Enterprise Applications" node ? because for me its not appearing even if the command line says its successfully deployed the bean. even when i save the configuration and restart websphere !!
--------------dumpnamespace text------------------
14 (top)/gs javax.naming.Context
15 (top)/gs/hello com.ibm.websphere.gettingstarted.ejbs.EJSRemoteStatelessSimpleSessi
nHome
16 (top)/jdbc javax.naming.Context
17 ERROR: Could not instantiate a bound object.
17 (top)/jdbc/Session com.ibm.ws.naming.util.CacheableReference
18 ERROR: Could not instantiate a bound object.
18 (top)/jdbc/GsDataSource com.ibm.ws.naming.util.CacheableReference
19 (top)/jdbc/SampleDataSource com.ibm.ejs.cm.portability.PortableDataSource
----------end of dumpnamespace text--------------
and thanks a lot for ur help.
Suchit
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Read the standard output log carefully. Since the bean is not showing up in the namespace dump it means it did not start up correctly when you started the server. Odds are VERY good that this is related to a JDBC problem.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Suchit Prasanna
Greenhorn

Joined: Jan 21, 2002
Posts: 8
Hi Kyle,
There seems to be a database error when i look in the logs. I have successfully corrected it. Thanks a lot for ur timely help.
Just for your information after completing the websphere tutorial now i am doing your workbook (link taken from this site). Thanks again.
 
Don't get me started about those stupid light bulbs.
 
subject: NameNotFoundException !!
 
Similar Threads
javax.naming.Communication Exception
EJB3 - dependency injection fails?
very very urgent pl help me ...
Failed to load servlet
Application Client Naming Exception