Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Class NOT FOUND error in TOMCAT

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Continue this discussion here
    Bookmark Topic Watch Topic
  • New Topic