• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

driver installation in tomcat as well as application configuration

 
amit malhotra
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18281
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic