Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


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’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: Class NOT FOUND error in TOMCAT
 
It's not a secret anymore!