| Author |
about class not found exception in eclipse
|
Abhinav Kumar Mishra
Greenhorn
Joined: Jul 25, 2011
Posts: 6
|
|
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 racle.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
Joined: Jul 25, 2011
Posts: 6
|
|
|
I have got solution. We have to keep also the driver ojdbc.jar into the tomcat lib folder.
|
 |
 |
|
|
subject: about class not found exception in eclipse
|
|
|