aspose file tools*
The moose likes Tomcat and the fly likes Query about configuration of Tomcat4.0?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Query about configuration of Tomcat4.0??" Watch "Query about configuration of Tomcat4.0??" New topic
Author

Query about configuration of Tomcat4.0??

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi all friends,
Iam using third party class in my servlet for that I have import that class in my servlet.I want to add that class in my Tomcat server for that I have tried in server.xml file in "conf" directory but couldn't find the way, how i can add that class in server.xml file.My Problem is I can compile my servlet by keeping that class in my classpath but during runtime Tomcat server giving me error(java.lang.NoClassDefFoundError)for that I have to keep that class file in server.xml file or Is there any other way to keeep that class file so that during runtime Tomcat server can find that class.
Regards
Bikash
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
You don't need to define it in the configuration file it just needs to be placed in the correct library directory.
If this class is used by multiple applications you could create a JAR file that includes it and place it in the server/lib directory of Tomcat. If it is ounly used by a single application then just place the class in the WEB-INF/classes directory of your application in the web-apps directory.


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Andy Deighton
Ranch Hand

Joined: Apr 01, 2003
Posts: 39
Actually, if it's to be shared, stick the jar in common/lib.
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Ooops. You are quite correct. That will teach me to read my posts before hitting the button
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query about configuration of Tomcat4.0??
 
Similar Threads
jbuilder 2005 - tomcat -data source problem
jbuilder 2005 - tomcat -data source problem
Tomcat Restarting
tomcat and jsp
context path overwritten