• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about class not found exception in eclipse

 
Abhinav Kumar Mishra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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 exceptionracle.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
  • Quote
  • Report post to moderator
I have got solution. We have to keep also the driver ojdbc.jar into the tomcat lib folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic