wood burning stoves*
The moose likes JBoss/WildFly and the fly likes NoClassDefFoundError on client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "NoClassDefFoundError on client side" Watch "NoClassDefFoundError on client side" New topic

NoClassDefFoundError on client side

Gerald Holl

Joined: Jul 14, 2005
Posts: 7

I deployed some EJB3 session beans with JBoss 4.0.3RC1 without errors but I always get a NoClassDefFoundError when I call a method on the client.
Here are some lines of the (console) test client:

The getSubsriptionId() Method returns a simple string. The lookup works fine.

RemoteSearch is the remote interface that the session bean implements.

Here is the whole error:

I didn't find any hints with google, I hope somebody can help me.

Gerald Holl

Joined: Jul 14, 2005
Posts: 7
Sorry, I've forgotten the most important part :roll:

The getSubscriptionId() method should return a String (it doesn't). It's the point where error occurs.
norman richards
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
You should post this on the JBoss forums. I don't know if you have simply not included the correct jars on the classpath or of the client jars in 4.0.3RC1 aren't uptodate. But, you can probably get faster help there.
Gerald Holl

Joined: Jul 14, 2005
Posts: 7
Hello Norman,

I solved it with help from the JBoss forum:
The file common-httpclient.jar was missing.

Anyway, the response time in this forum is quite faster than of the JBoss forum, that's the reason why I prefer posting here
I agree. Here's the link: http://aspose.com/file-tools
subject: NoClassDefFoundError on client side
Similar Threads
[Hibernate] NoClassDefFoundError
EJB3.0 - java.lang.reflect.UndeclaredThrowableException problem
EJB3 entity bean