This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes driver installation in tomcat as well as application configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "driver installation in tomcat as well as application configuration" Watch "driver installation in tomcat as well as application configuration" New topic
Author

driver installation in tomcat as well as application configuration

amit malhotra
Ranch Hand

Joined: Aug 06, 2001
Posts: 30
Please help me out I am a newbie as far as tomcat 3.2.1 is concerned I have a fictitious web application say which has a directory structure
myWebApp\
index.html
login.jsp
images\
logo.gif
literature\
report.pdf
web-inf\
web.xml
classes\
shoppingcart.class
catalog.class

lib\
dbLibrary.jar
xmltools.jar
I have downloaded a type III thin driver from oracle site(in .zip format),suppose my catalog class talks to a database(oracle) where should I place the driver(should i convert it to .jar format and how).
Please give me the complete directory structure as to where
I should place the directories in tomcat and the installation path of oracle thin driver,any replies will be welcomed
thanx a lot

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
You could unpack the zip file into the WEB-INF/classes directory structure or you might try renaming the zip to a jar an placing it in the WEB-INF/lib directory.
Be sure your application has a context entry in Tomcats server.xml
Bill
amit malhotra
Ranch Hand

Joined: Aug 06, 2001
Posts: 30
Originally posted by William Brogden:
You could unpack the zip file into the WEB-INF/classes directory structure or you might try renaming the zip to a jar an placing it in the WEB-INF/lib directory.
Be sure your application has a context entry in Tomcats server.xml
Bill

will i have to do any other changes or i can connect to the database straight away by unpacking the .zip folder in web-inf/lib directory,do i need to make changes in web.xml file
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

I'd unzip that zipfile. You may find that the actual driver's a jar stored inside there. That's what you'd put in your WEB-INFO/libs directory. Oracle's too big on Java to have given you a zipfile and expected you to puzzle it out.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: driver installation in tomcat as well as application configuration
 
Similar Threads
jdbc dirver
tomcat classpath
Cannot Compile Class error on Tomcat 6.0
tomcat classpath
JDBC Driver in Tomcat 4.0