You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/03 11:03:31 UTC
DO NOT REPLY [Bug 29899] New: -
Tomcat server crashes while connecting to MySQL.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29899>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29899
Tomcat server crashes while connecting to MySQL.
Summary: Tomcat server crashes while connecting to MySQL.
Product: Tomcat 4
Version: 4.1.18
Platform: All
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: sulabh_iet@rediffmail.com
I have tomcat server and mysql-3.23.52 server on the same machine (RedHat Linux 8)
In my webapps/application/WEB_INF/lib/ folder, I have 2 .jar files. One is
myapplication .jar and other is JConnector(downloaded from mysql.com).
One of the files in my application contains the following lines:
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost/?user=username&password=password");
But whenever I try to open my .jsp page, the Connection fails to the Tomcat
Server and after that no other page opens. The tomcat server itself crashes and
I have to restart it.
I tried the following change:
Connection conn =
DriverManager.getConnection("jdbc:mysql://192.168.100.38:3306/?user=username&password=password");
But the problem remains.
The above application runs perfectly if I run it on terminal without using jsp.
The other applications which do not use mysql run perfectly.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org