File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Class NOT FOUND error in TOMCAT 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 » Servlets
Reply locked New topic
Author

Class NOT FOUND error in TOMCAT

Rara Levis
Greenhorn

Joined: Sep 10, 2003
Posts: 11
Hi
I have placed my applications jar file in {Tomcat}/webapps/WEB-INF/lib.
Tomcat finds all Classes at the root of the jar file but the ones that lie within the directory structure, Tomcat cant find them.
If someone can help me on this !!
Regards
Mohamed Yousuff
Ranch Hand

Joined: Jun 23, 2001
Posts: 73
I think this is the design of java and has nothing to do with Tomcat. In order for java to recognize classes within the directory structure like in your situation, those should be placed in a proper package, else you have no way except to unjar them and include the classpath of all subdirectories in the configuration.
Hope that helps.

Originally posted by Rara Levis:
Hi
I have placed my applications jar file in {Tomcat}/webapps/WEB-INF/lib.
Tomcat finds all Classes at the root of the jar file but the ones that lie within the directory structure, Tomcat cant find them.
If someone can help me on this !!
Regards
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Continue this discussion here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class NOT FOUND error in TOMCAT
 
Similar Threads
Classes12.zip
What is the path and the classpath required for Servlet.
Plz clear my doubt
error in downloading file
Apache Tomcat - JDBC error