aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Exception while running client of session bean 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 "Exception while running client of session bean" Watch "Exception while running client of session bean" New topic
Author

Exception while running client of session bean

Deepak Gandhe
Greenhorn

Joined: Apr 16, 2006
Posts: 2
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

Joined: Mar 05, 2003
Posts: 172
Try to add all jars in the client directory of your application server.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception while running client of session bean