Posted By:
Sujit_Maharana
Posted On:
Friday, August 29, 2003 02:47 AM
I am having JDK1.4 and tomcat 4.1. I am able to get data from Oracle by using my jdbc driver. But when i am using the same code in a servlet, its giving me classNotFound exception. I have installed jdbc driver. Also classpath and path has been set. Do i need to configure something in tomcat server? error is coming in the following code: try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch (ClassNotFoundException e) { out.println("Could not load driver."); e.printStackTrace(); } output is coming as : Could not load driver.
More>>
I am having JDK1.4 and tomcat 4.1.
I am able to get data from Oracle by using my jdbc driver. But when i am using the same code in a servlet, its giving me classNotFound exception. I have installed jdbc driver. Also classpath and path has been set.
Do i need to configure something in tomcat server?
error is coming in the following code:
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException e) {
out.println("Could not load driver.");
e.printStackTrace();
}
output is coming as :
Could not load driver.
<<Less