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
posted 4 years ago
I have got solution. We have to keep also the driver ojdbc.jar into the tomcat lib folder.