This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
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
Joined: Jan 21, 2002
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
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
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.