Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2008, 03:50 PM
Member
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0
RonNYC is on a distinguished road
Default 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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 03:51 PM
Member
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0
RonNYC is on a distinguished road
Default
NOTE: Not sure what cPanel(R) is doing, as I type localhost:8080. SORRY.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver ljustiniano New To Java 6 02-19-2010 02:57 PM
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver haneeshrawther Advanced Java 0 03-21-2008 02:13 PM
Jdbc Driver For Oracle Swamipsn New To Java 0 08-14-2007 05:31 AM
Hwlp with "Open", "Save", "Save as..." trill New To Java 1 07-31-2007 08:53 AM
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException romina New To Java 1 07-25-2007 11:55 PM


All times are GMT +2. The time now is 04:40 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org