File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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
Author

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

thanks,
Sid
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: http://aspose.com/file-tools
 
subject: bizarre NoClassDefFoundError for no reason
 
Similar Threads
Junit testing for model classes
Design advice needed. Data validation
Error in WSAD5.0...
How to design a project archtecture
migrating to eclipse 3.0 from jdeveloper 10g