This is a discussion on tomcat JDBCRealm within the Apache Web Server forums, part of the Web Server and Related Forums category; Greetings, I trying to setup tomcat 4.1.24 to use the JDBCRealm with mysql for user authentication. Trouble is, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Greetings,
I trying to setup tomcat 4.1.24 to use the JDBCRealm with mysql for user authentication. Trouble is, I'm getting an Exception out of org.gjt.mm.mysql.Driver whenever I try to start tomcat. Can someone help me out. Here is my Realm definition in the server.xml: <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/facc?user=foo" connectionName="foo" connectionPassword="bar" userTable="users" userNameCol="login" userCredCol="password" userRoleTable="controls" roleNameCol="role" /> And here is the exception I'm getting when I try to start tomcat. Is there something wrong with my definition above? ----- Root Cause ----- java.sql.SQLException: org.gjt.mm.mysql.Driver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm .java:606) at org.apache.catalina.realm.JDBCRealm.start(JDBCReal m.java:679) at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1173) at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:347 ) at org.apache.catalina.core.StandardService.start(Sta ndardService.java:4 97) at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:219 0) at org.apache.catalina.startup.Catalina.start(Catalin a.java:512) at org.apache.catalina.startup.Catalina.execute(Catal ina.java:400) at org.apache.catalina.startup.Catalina.process(Catal ina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:203) -- John J. Rushford j j r { a t } a l i s a { d o t } o r g http://www.cs.du.edu/~jjr |
| Thread Tools | |
| Display Modes | |
|
|