Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

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


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

vB 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 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
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver ljustiniano New To Java 4 08-06-2007 06:30 PM
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 +3. The time now is 07:06 AM.


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