• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2EE tutorial problem

 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic