• 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

a question about zip and jar file

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys..
when i used iplanet4.0 for develop a web application including jsp and servlet,i include the Oracle JDBC driver classes12.zip in the jvm classpath of iplanet,it works,today,under tomcat,i use a war to deploy my web application and i put the classes12.zip under WEB-INF/lib/,the database connection could not be got,after some debugs,i found if i change the classes12.zip to classes12.jar,it works again..
could some one else tell me why???
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because the code in Tomcat that loads up all of the classes from those special directories doesn't load anything but *.jar files. It's just the way the TC developers have chosen to implement their class loading.
 
Saloon Keeper
Posts: 27762
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
Also because a JAR is just a specialized form of ZIP. Otherwise it STILL wouldn't have worked.
However, I'd normally not put the JDBC drivers - or for that matter ANY non-"business" code in the webapp, excepting things that are not sharable anyway. I'd put them in TOMCAT_HOME/common/lib.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic