File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Websphere
Bookmark "NameNotFoundException !!" Watch "NameNotFoundException !!" New topic

NameNotFoundException !!

Suchit Prasanna

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 ?

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
this'll show u the JNDI tree which the contains the JNDI names of all applications which the server is currently running...

Meghana Reddy
Suchit Prasanna

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
16 (top)/jdbc javax.naming.Context
17 ERROR: Could not instantiate a bound object.
17 (top)/jdbc/Session
18 ERROR: Could not instantiate a bound object.
18 (top)/jdbc/GsDataSource
19 (top)/jdbc/SampleDataSource
----------end of dumpnamespace text--------------
and thanks a lot for ur help.
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Suchit Prasanna

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.
I agree. Here's the link:
subject: NameNotFoundException !!
It's not a secret anymore!