I put jdbc driver in all directories, in "regular directory" and in jar
file. In Tomcat 3.2 it worked, not in 4.0.
Pawel
-----Original Message-----
From: John Gregg [mailto:john.gregg@techarch.com]
Sent: Monday, June 17, 2002 7:12 PM
To: 'Tomcat Users List'
Subject: RE: Database connection - Catalina
Tomcat probably isn't finding your jdbc driver. The exception's
getMessage() method is returning a class name, which usually means
ClassNotFoundException or ClassCastException. Read this:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
john
-----Original Message-----
From:
tomcat-user-return-22871-john.gregg=techarch.com@jakarta.apache.org
[mailto:tomcat-user-return-22871-john.gregg=techarch.com@jakarta.apache.
org]On Behalf Of Skorupski Pawel ,(PZUZ)
Sent: Monday, June 17, 2002 7:32 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: Database connection - Catalina
Hello,
I've got a problem with Tomcat 4.0 (Catalina). After setting up REALM:
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority?user=test&password=test"
userTable="users" userNameCol="user_name"
userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
I can not connect to mysql server which is running on localhost. The error I
received is:
Catalina.start:Lifecycle Exception: Exception opening database connection:
java.sql.SQLException: org.gjt.mm.mysql.Driver
I ran through many faq's lists and the only solution I found was: check
tables, all names etc. I've checked not twice but ten times receiving the
same type of error.
I use FORM type of authentication. Everything was ok with Tomcat 3.2 and got
worse after installing new version of Tomcat. Libraries: org.jar,
servlet.jar are added to classpath.
I would be grateful for any help.
Pawel
--
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>
|