Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while running client of session bean

 
Deepak Gandhe
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

i'm using JBoss 4.0.4, getting an error while running client for session bean.
i've following jar files in classpath
>>java -classpath helloclient.jar;%LIBDIR%\jnp-client.jar;%LIBDIR%\jboss-common-client.jar;%LIBDIR%\jboss-j2ee.jar;%LIBDIR%\jboss-net-client.jar;
%LIBDIR%\jbossall-client.jar;;%LIBDIR%\jnet.jar com.examples.HelloClient


the error is

Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/CreateExcep
tion


plz help me
 
Yuan Ye
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to add all jars in the client directory of your application server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic