aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Advice Client problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Advice Client problem" Watch "Advice Client problem" New topic
Author

Advice Client problem

Peter Warde
Ranch Hand

Joined: Aug 18, 2004
Posts: 71
I'm trying to get the Advice Client running in Chapter 1 of HeadFirst EJB, but I keep getting the following error

javax.naming.noInitialContextException: Need to specify class name in environment or system property or as an applet parameter or as an application resource file.

I've looked at all the notes regarding changing the JNDI name from Test1 to Advisor, I'm running J2EE 1.3 and jsdk1.3.1_12 and I ain't getting no joy. The j2ee server starts up nicely and my bean verifies as correct in the deploy tool and deploys fine.I've compiled up the client as per the instructions in the book and run it as per the book.

What's up and can anyone help - Thanks Peter
Me
Ranch Hand

Joined: Dec 01, 2003
Posts: 51
Hi Peter
I am not exactly sure but I guess you need to check if j2ee.jar is in your CLASSPATH?
Also make sure that you are deploying your bean with name "Advisor"
[ August 26, 2004: Message edited by: Muzammil Hussain ]
Peter Warde
Ranch Hand

Joined: Aug 18, 2004
Posts: 71
Thanks. Problem solved. Just for anyone else looking at this thread it was because the j2ee.jar file was not on the classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advice Client problem
 
Similar Threads
RI Server can't find security.properties
How to write EJB client?
Starting SCBCD
error while running sample EJB client
Error while running my first ejb program