• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Error running examples in WebSphere Workbook

Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I followed steps in WebSphere Workbook Chapter 4. I created ejb module, client modules and deployed just fine, but when I tried to run the client code. It looks like it can't find any JNDI name. I got NameNotFoundException for both Cabin Entity Bean and Travel Agent Session Bean.
The error message for Travel Agent Session Bean looks like this( The Cabin Entity Bean error message is similar except that the JNDI name it's looking for is "CabinHomeRemote" ):
WSCL0012I: Processing command line arguments.
WSCL0013I: Initializing the J2EE Application Client Environment.
WSCL0035I: Initialization of the J2EE Application Client Environment has complet
WSCL0014I: Invoking the Application Client class com.titan.travelagent.Client_3
javax.naming.NameNotFoundException: TravelAgentHomeRemote
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1246)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:981)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.titan.travelagent.Client_3.main(Client_3.java:21)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContain
at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:63)

I've checked the deployed Enterprise Application for JNDI name. They are "CabinHomeRemote" and "TravelAgentHomeRemote" respectively.
I also checked Naming Service Settings. Not sure if it matters, but the settings are:
Enable checked
Provider Host: localhost
Provider Port: 9070
Provider Classname: com.ibm.ejs.naming.transient.NamingServiceProvider
Persistent Name enabled
I've no clue why it can't find any JNDI name. Any help is greatly appreciated!

Posts: 3892
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is due to an error that cropped up in printing. See the errata page for titan-books at:
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Caroline Iux
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I actually caught that error and changed it to the right name. For some reason, it just doesn't work. I've uninstalled the application and installed it again, restarted my PC. Still can not get it to work.

[This message has been edited by Caroline Iux (edited December 17, 2001).]
This is my favorite show. And this is my favorite tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!