The piece of code loading oracle.jdbc.driver.OracleDriver succeedes in JAVAApi but not within a Servlet over Tomcat:
System.out.println("Loading the driver");
Class.forName("oracle.jdbc.driver.OracleDriver");
// Getting the connection
System.out.println("Getting the connection to demo@demo");
When called from a servlet it generates an exception:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
The other prints: Getting the connection to demo@demo
Both programs have
import java.sql.*
use same CLASSPATH set in ControlPanel
run on the same box
Can you help ?
System.out.println("Loading the driver");
Class.forName("oracle.jdbc.driver.OracleDriver");
// Getting the connection
System.out.println("Getting the connection to demo@demo");
When called from a servlet it generates an exception:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
The other prints: Getting the connection to demo@demo
Both programs have
import java.sql.*
use same CLASSPATH set in ControlPanel
run on the same box
Can you help ?