This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Exception while running client of session bean
 
It's not a secret anymore!