ClassNotFoundException oracle.jdbc.driver.OracleDriver only in servlet, using Eclipse
This question already has an answer here:
Probably you aren't deploying the oracle driver with your application.
You have several options:
WEB-INF/lib
folder Build Path
-> Configure Build Path...
-> Order and Export
-> Check the drivers. You must include the ojdbc6.jar file in the Deployment Assembly of the Project...
select the web project which contains the jsp file...
select Project tab in the menu bar in Eclipse
select properties in the drop down menu
select Deployment Assembly
Add your ojdbc6.jar file in it.
试试这个,将oracle.jdbc.driver.OracleTypes
更改为oracle.jdbc.OracleTypes
上一篇: ViewModel应该如何关闭表单?
下一篇: ClassNotFoundException仅在使用Eclipse的servlet中使用oracle.jdbc.driver.OracleDriver