Howdy, >How does one make additional jars available to tomcat? I understand one can >add them to WEB-INF/lib,but there are sometimes that approach does not >work. >Here's a scenario: >I'm using tomcat 4.1.24 with jdk 1.4.1_02. One of the required libraries >for >my web app is oc4j.jar. If I put that oc4j.jar into the WEB-INF/lib, tomcat >throws the following error on startup: >===== >Starting service Tomcat-Standalone >Apache Tomcat/4.1.24 >WebappClassLoader: >validateJarFile(D:\jakarta-tomcat-4.1.24\bin\..\webapps\graphics\WEB- >INF\lib >\oc4j.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending >class: javax/servlet/Servlet.class
The message is fairly clear: oc4j.jar is not acceptable in a Servlet Specification v2.3 container, because it contains a copy of the java servlet API. You need to re-package the oc4j jar, taking out the servlet classes, or obtain a later copy of the oc4j jar which does not contain the servlet classes. Generally speaking, the way to make more jars available to tomcat for your web application is to place these jars in the WEB-INF/lib directory of your web application. However, the jars can't contain the servlet APIs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
