View Single Post
  #1 (permalink)  
Old 03-14-2008, 03:50 PM
RonNYC RonNYC is offline
Member
 
Join Date: Mar 2008
Posts: 2
RonNYC is on a distinguished road
failure at Class.forName("oracle.jdbc.driver.OracleDriver");
I am trying to develop a database/jsp/servlet application in Eclipse (Europa 3.3.1.1). I have other db applications on the workstation and use classes12.zip (or classes12.jar) for them with no problem.

Classes12.zip is one of the libraries in the project. The webserver is Tomcat 5.5. HOWEVER, the jsp front end calls this code:

<form action="SQLGateway" method="post">
<textarea name="sqlStatement" cols="60" rows="8">${sqlStatement}
</textarea><br><br>
<input type="submit" value="Execute">
</form>

and the servlet does this:

try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
}

but while the code passes validation, this line raises the ClassNotFound exception. I've removed classes12.zip and added it back; problem occurs whether I'm running the code within Eclipse or from cPanelŽ

Any help is GREATLY APPRECIATED.

RON
Reply With Quote
Sponsored Links