• Post Reply 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 in Tomcat

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have placed my application jar file in directory {tomcat}/webapps/Appl/WEB-INF/lib.
Tomcat finds all classes that are at the root of the jar files, but classes that are within the directory structure in the jar file, Tomcat cant find them.

Please Help !
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by "root" - do you mean classes within the lib folder, or classes *inside* the Jar file?
Also, have you set up your tomacat server to re-load its class files? If you haven't, each time you make changes to the lib or classes directory, you have to recycle the server.
Since this is a tomcat-specific question I'm going to move this thread there.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note that you do not have to take Tomcat down and restart it to "recycle" a web application. The management interface lets you take applications off-line or restart them individually.
Bill
 
Rara Levis
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rob Ross:
What do you mean by "root" - do you mean classes within the lib folder, or classes *inside* the Jar file?
Also, have you set up your tomacat server to re-load its class files? If you haven't, each time you make changes to the lib or classes directory, you have to recycle the server.
Since this is a tomcat-specific question I'm going to move this thread there.

 
Rara Levis
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by William Brogden:
Note that you do not have to take Tomcat down and restart it to "recycle" a web application. The management interface lets you take applications off-line or restart them individually.
Bill


Thanx William, your suggestion was vital. I have made use of the Management Interface, successfully.
 
Rara Levis
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rob Ross:
[QB]What do you mean by "root" - do you mean classes within the lib folder, or classes *inside* the Jar file?
Also, have you set up your tomacat server to re-load its class files? If you haven't, each time you make changes to the lib or classes directory, you have to recycle the server.
Thank You Rob for your reply. I have mentioned in my post that I have placed the classes in a jar file. What I meant by root was the root of the jar file.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic