Re: Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-06 Thread David Smith
Is your Tomcat using the security manager?? That would explain the error message. If so, you'll have to allow access to the datasource in catalina.policy. Otherwise it should work. --David On Wednesday 05 December 2001 05:19 pm, you wrote: > Hi, I am unable to connect a servlet or jsp runni

Re: Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-05 Thread August Detlefsen
Try using the 2 argument DriverManager.getConnection method: DriverManager.getConnection(String connectString, Properties connectProperties); Where: connectString doesn't include the "?user=root&password=" connectProperties is a java.util.Properties with elements "user" and "password"

Cannot connect Servlet/JSP running in Tomcat to MySQL Database

2001-12-05 Thread Stine, Matt
Hi, I am unable to connect a servlet or jsp running in Tomcat to a MySQL database. Here are the particulars: Tomcat Version: 4.0.1 MySQL Version: 3.23.45 MySQL JDBC Driver Version: mm.mysql-2.0.4-bin.jar Linux Version: Red Hat 7.1 running Kernel Version 2.4.2-2smp Here is