tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reid Beckett" <r...@stonylakesolutions.com>
Subject RE: TOMCAT 3.2 -> 4.0, JDBC, MySQL
Date Wed, 31 Oct 2001 16:19:03 GMT
This doesn't sound like a problem with Tomcat configuration.  It has
something to do with the mysql user privileges.  Assuming the dbURL,
username, and password are correct, the user may not have access to the
particular database, or the user may not have access from that
particular ip address.

-----Original Message-----
From: Christian Gothe [mailto:christian@kapelan.de]
Sent: Wednesday, October 31, 2001 9:51 AM
To: tomcat-user@jakarta.apache.org
Subject: TOMCAT 3.2 -> 4.0, JDBC, MySQL


Hi!

Problem:

-[cut]-
Class.forName("org.gjt.mm.mysql.Driver");
Connection con = DriverManager.getConnection(DbURL, DbUser, DbPassword);
-[cut]-

That works fine for TC3.2, but throws an SQLException in TC 4.0.

Exception:

java.sql.SQLException: Server configuration denies access to data source

System:

RedHat 7.2
Tomcat-4.0.1 RPMS
JDK-1.4 RPMS
MM.Mysql JDBC Driver
Apache-1.3.12 RPMS
MySQL-3.23.36 RPMS
webapp_module RPMS (WarpConnector)

  What have to be done to get my servlet work for TC 4.0 w/o use of JNDI

lookups?


Regards,
Christian


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message