Jdbc Connectivity using OCI8 [message #91526] |
Thu, 17 October 2002 02:57 |
Manoj
Messages: 101 Registered: August 2000
|
Senior Member |
|
|
When i try to connect to database using the following java program it works fine.
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle:oci8:@demotest","manoj","manoj");
pst = con.createStatement();
When i tried to connect to database using a servlet it gives me following run time error.
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
(this error is only for servlet and not for simple java program)
I have classes12.zip and nls_charset12.zip in my classpath. I also have [[oracle_home]]/jdbc/lib in my path. But still i could not solve the problem
I am using apache webserver
Manoj
|
|
|
|
|
|
|