dcsimg
Class Not Found in Servlet for Oracle JDBC driver
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: Class Not Found in Servlet for Oracle JDBC driver

Posted By:   Stephen_McConnell  
Posted On:   Friday, August 29, 2003 08:12 AM

A quick search of ClassNotFoundException on this forum (see the search box above your message?) producted this results.
Clas s Not Found Error !! URGENT.


Many times something like this has been covered; and all you need to do is search the site.


Stephen McConnell

About | Sitemap | Contact