Results 1 to 2 of 2
  1. #1
    RonNYC is offline Member
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    0

    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

  2. #2
    RonNYC is offline Member
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    0

    Default

    NOTE: Not sure what cPanel(R) is doing, as I type localhost:8080. SORRY.

Similar Threads

  1. Hwlp with "Open", "Save", "Save as..."
    By trill in forum New To Java
    Replies: 3
    Last Post: 11-02-2010, 09:26 AM
  2. Replies: 6
    Last Post: 02-19-2010, 01:57 PM
  3. Replies: 0
    Last Post: 03-21-2008, 01:13 PM
  4. Jdbc Driver For Oracle
    By Swamipsn in forum New To Java
    Replies: 0
    Last Post: 08-14-2007, 04:31 AM
  5. Replies: 1
    Last Post: 07-25-2007, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •