Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Class NOT FOUND error in TOMCAT

 
Rara Levis
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Continue this discussion here
 
    Bookmark Topic Watch Topic
  • New Topic