Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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 javax.naming.InitialContext.lookup(
at com.titan.travelagent.Client_3.main(
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Native Method)

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:
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 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).]
Every plan is a little cooler if you have a blimp. And a tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic