Hello,
I am trying to connect to MySQL server in my servlet application but the
JDBC driver (Connector/J 3.0.5) keeps throwing this exception:
11:59:31.327 EVENT Starting Jetty/4.2.7
11:59:31.472 EVENT Started org.mortbay.http.NCSARequestLog@12d7a10
11:59:31.904 EVENT Started
WebApplicationContext[/game,/usr/local/Jetty-4.2.7/webapps/BrainKing]
11:59:32.529 EVENT Started SocketListener on 0.0.0.0:8080
11:59:32.529 EVENT Started org.mortbay.jetty.Server@1e5e2c3
java.sql.SQLException: Server connection failure during transaction.
Attemtped reconnect 3 times. Giving up.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1639)
at com.mysql.jdbc.Connection.<init>(Connection.java:485)
at com.mysql.jdbc.Driver.connect(Driver.java:341)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
My configuration is:
Linux Slackware, Kernel 2.4.20.
Mysql 4.0.10
Jetty 4.2.7
J2SDK 1.4.1
Is there anything I have to set up first? My PHP application has no problems
with connecting to MySQL server.
Thanks.
Filip Rachunek
http://BrainKing.com
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
| Thread |
|---|
| • Connection | Filip Rachunek | 17 Feb |