File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes bizarre NoClassDefFoundError for no reason Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "bizarre NoClassDefFoundError for no reason" Watch "bizarre NoClassDefFoundError for no reason" New topic

bizarre NoClassDefFoundError for no reason

Sidd Kulk
Ranch Hand

Joined: Feb 20, 2007
Posts: 152
Hi ranchers,
This is probably the most bizarre error i have ever come across. I am using Eclipse 3.2. I have two projects, one is a dynamic web project and the other is a simple java project acting as a data model.
The problem is that when i tried to call the methods of my data model from web project, i am getting this error wrapped inside the InvocationTargetException. I have set all the build path parameters correctly(though, if they were correct, this error wont have popped up, but still i m confident that its fine).
please help

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

If it's a web application, your data model classes should be under WEB-INF/classes, or in a JAR file under WEB-INF/lib.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: bizarre NoClassDefFoundError for no reason
It's not a secret anymore!