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
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