Troy Campano wrote: > > You need to put the location of the Oracle JDBC driver in TOMCAT's > CLASSPATH. > Edit the $TOMCAT_HOME/bin/catalina.sh file and find lines where the $CP > variable is used. > [...]
Actually, JDBC driver classes, or any classes for that matter, can be placed in the WEB-INF/classes directory or the WEB-INF/lib directory (if they are in a JAR file) for the web application. This is the standard way to make classes available to a web application, so I recommend it over messing with CLASSPATH settings for the container. If the class files are in a ZIP file, just put it in WEB-INF/lib and rename the file with a ".jar" extension instead of a ".zip" extension. ZIP and JAR use the same internal structure, but a web container only recognizes files with ".jar" extensions. If the classes should be shared by multiple web applications, they may be placed in a special container directory instead. This is not standard, so you will have to look at the docs for your container to see if it provides this support and, if so, what the name of the directory is. Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
