tomcat JDBCRealm

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, ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2003
read-the-signature@send-spam-to-dev-null.com
 
Posts: n/a
Default tomcat JDBCRealm

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:46 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0