• 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

about class not found exception in eclipse

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am working on J2EE project from Eclipse IDE.There is tomcat 6.0 as a web contaier.I have added an servlet-api jar ,jsp-api jar and ojdbc-14.jar as an external jar to library.

this run very fine when i run in eclipse as simple java program!!!

but when i write same code on servlet and try to run as on web server it gives class not found exception:oracle.jdbc.driver.OracleDriver along with many lines.


even i don't get "driver ok " printed.so there is problem something in driver.But how same program runs as a java application and i get database connectivity??I have also added an ojdbc-14.jar to library.

i need to connect to oracle database as a servlet on dynamic request from client in my project.
whats going wrong???
any suggestion to overcome this problem???
 
Abhinav Kumar Mishra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have got solution. We have to keep also the driver ojdbc.jar into the tomcat lib folder.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic