• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

driver installation in tomcat as well as application configuration

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I didn't say it. I'm just telling you what this tiny ad said.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic