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!
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).]
And then we all jump out and yell "surprise! we got you this tiny ad!"
a bit of art, as a gift, the permaculture playing cards