• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Error running examples in WebSphere Workbook

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
ed.
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
erAndLaunchApp(launchClient.java:430)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
ient.java:288)
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!

 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is due to an error that cropped up in printing. See the errata page for titan-books at:
http://www.jmiddleware.com/workbooks/websphere_errata.html
Kyle
------------------
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic