File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
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:
subject: J2EE tutorial problem
It's not a secret anymore!