aspose file tools*
The moose likes Tomcat and the fly likes Class NOT FOUND in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Class NOT FOUND in Tomcat " Watch "Class NOT FOUND in Tomcat " New topic
Author

Class NOT FOUND in Tomcat

Rara Levis
Greenhorn

Joined: Sep 10, 2003
Posts: 11
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

Joined: Jan 07, 2002
Posts: 2205
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.


Rob
SCJP 1.4
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
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

Joined: Sep 10, 2003
Posts: 11
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

Joined: Sep 10, 2003
Posts: 11
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

Joined: Sep 10, 2003
Posts: 11
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
 
subject: Class NOT FOUND in Tomcat