This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I 've developed a JSP that accesses Oracle database. I get an error stating "oracle.jdbc.driver.OracleDriver" not found. Here are the statements... <%@ page import="java.io.*, javax.servlet.jsp.*, java.sql.*" %> <%@ page import="java.net.*, javax.servlet.jsp.*, javax.servlet.* " %> <%@ page import="javax.servlet.http.*" %> <%@ page import="oracle.jdbc.driver.*" %> <h4>Metrics Report Generation System</h4> <% Class.forName("oracle.jdbc.driver.OracleDriver"); //DriverManager.registerDriver( new oracle.jdbc.driver.OracleDriver() ); Connection con; // con=DriverManager.getConnection("jdbc racle ci8:@", "userID", "PSWD"); con=DriverManager.getConnection("jdbc racle:thin:@st052:1521:ORCL", "userID", "PSWD"); I am using Javawebserver2.0 just for Testing this application. The classpaths have SERVLET.jar and JSP.jar. I even tried to create a jar file containing the oracle driver classes and concatenated to the above mentioned class path but I still get the same error. Can anybody help in solving this problem. Thanks in advance, Suresh Selvaraj
Suresh Selvaraj, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>