aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE tutorial problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE tutorial problem" Watch "J2EE tutorial problem" New topic
Author

J2EE tutorial problem

Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
I am following the Sun J2EE tutorial. When I build and deploy the Checker example. I am recieving the following error when I run the client:
Application threw an exception:java.langNoClassDefFoundError: CheckerHome
This is baffling me as I built and deployed the example in exactly the same manner for the previous examples and had no problems. Has anyone else encountered this problem and if so how did you resolve the error?
Dhananjay Inamdar
Ranch Hand

Joined: Jan 27, 2003
Posts: 130
From the error message it seems that the java runtime system is unable to find this checker class on your machine.
You deployed the application as per the exact steps of tutorila is ok, but please re-check the classpaths of your machine and see to it that this checkr class is accessible through the classpath.


Just like you, struggeling to get the right solutions!<br /> <br />Sun Certified Java Programmer 1.5<br /> <br />Target - SCWCD
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
I managed to get the example working by changing the code in the client class from
to
Can anyone please explain why I needed to create a context which is basically my environment and then another to find the ejb.
Is this only necessary when the client isn't specified in the classpath? I am setting the APPCPATH to the client jar each time I test.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE tutorial problem