Advertisement

10.07.2007 at 11:39PM PDT, ID: 22878243
[x]
Attachment Details

How do I get my web application to connect to mysql again?

Asked by richardsimnett in Java Server Pages (JSP)

Tags: driver, suitable, found, mysql, connect

Hello,
I am having this weird issue with my jsp application when trying to connect to mysql. It started to occur when I migrated from netbeans 5.5 to the netbeans 6 beta... in 5.5 I was using tomcat is the integrated j2ee server, however, in 6 they now use sun java application server 9.1, somewhere between the two my application stopped being to read the mysql database even though the connector jar is included in the package as a library. Here is what I get when I attempt to login to my application:

HTTP Status 500 -

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found for jdbc:mysql://192.168.1.4/pdev"

root cause

javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found for jdbc:mysql://192.168.1.4/pdev"

note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
Sun Java System Application Server 9.1


Again the mysql connector is already included in the package.. so that fact that it cannot find a driver is beyond me.

A working fix to this problem is worth 500 points.

Thanks,
RickStart Free Trial
[+][-]10.07.2007 at 11:46PM PDT, ID: 20032548

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2007 at 02:03AM PDT, ID: 20032807

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2007 at 02:39AM PDT, ID: 20032892

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2007 at 04:22AM PDT, ID: 20033177

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2007 at 04:13PM PDT, ID: 20037617

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Server Pages (JSP)
Tags: driver, suitable, found, mysql, connect
Sign Up Now!
Solution Provided By: richardsimnett
Participating Experts: 2
Solution Grade: B
 
 
[+][-]10.08.2007 at 07:31PM PDT, ID: 20038262

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.10.2007 at 04:22AM PDT, ID: 20047477

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628