Eclipse Error: java.sql.SQLException: Error trying to load driver

Posted on 2014-07-11
Last Modified: 2014-07-11
From Eclipse I added a database connection using JDBC.  To do this I did the following

I created a User Library, as follows

    Windows -> Preferences -> Java -> Build Path => User Libraries

    Then press the 'New' button, and create a lib

    Then hit the 'Add External JARs' button to add JARS external to ECLIPSE

Open in new window

From there I loaded the following files:


Open in new window

Then I added the User Library I created to the project Build path as follows:

    - Rt click on the project
    - click on Properties
    - Click on "Java Build Path"
    - Check "TEST_LIB" (the name of the User Library

Open in new window

Then I selected the Driver name class from the wizard (now that the libraries are in the project, magically the GUI can see the class name

Open in new window

I select the class name and put in a url, and TEST THE CONNECTION

The test of the connection is SUCCESSFUL  !!!!

I am happy so I pop in a prepared statement:


Open in new window

And then I run the flow as a "Mule Application"

But when I sent an http message to it I  get the following error:

    java.sql.SQLException: Error trying to load driver: : (org.mule.module.db.internal.domain.connection.Connect
    ionCreationException). Message payload is of type: String

Open in new window

So I can now test the connection when the flow is not running, but when the flow is running, it can not find the driver I used to test the connection with

Any ideas of where I should look to resolve this issue

(Mode:  Previously I inadvertently posted duplicate threads, so I deleted/clear up the previous threads, and am consolidating them to this one)
Question by:Anthony Lucia
    LVL 86

    Accepted Solution

    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    This video teaches viewers about errors in exception handling.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now