File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class NOT FOUND in Tomcat

 
Rara Levis
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • 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 !
 
Rob Ross
Bartender
Posts: 2205
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13046
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic