tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis van den Berg" <dvdb...@xs4all.nl>
Subject RE: secure aplications with JDBCRealm
Date Sat, 08 Jun 2002 10:33:37 GMT
Just to be sure, probably did that already.

Did you set put the MySQL dirver in your classpath?
For example in the /lib dir of tomcat?

Dennis.

-----Original Message-----
From: Urtzi Larrazabal [mailto:urtzi@esi.es]
Sent: vrijdag 7 juni 2002 12:41
To: Tomcat Users List (E-mail)
Subject: secure aplications with JDBCRealm



Hi !

I am trying to secure my application thought JDBCRealm



# 2002-06-07 12:24:05 - Ctx(/Myaplication) : Exception in R( /Myaplication +
+ null) - java.lang.RuntimeException: JDBCRealm.checkConnection:
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
        at
org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(JDBCRealm.java:307)
        at
org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(JDBCRealm.java:239)
        at
org.apache.tomcat.modules.aaa.RealmBase.checkPassword(RealmBase.java:212)
        at
org.apache.tomcat.modules.aaa.RealmBase.authenticate(RealmBase.java:193)
        at org.apache.tomcat.core.Request.getRemoteUser(Request.java:575)
        at
org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(AccessInterceptor.
java:359)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:90
2)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
        at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:341)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
        at java.lang.Thread.run(Thread.java:479)



server.xml

<JDBCRealm
            debug="99"
            driverName="org.gjt.mm.mysql.Driver"
            connectionURL="jdbc:mysql://myhost.dec.es/tomcat"
            userTable="user"
            userNameCol="user_name"
            userCredCol="user_pass"
            userRoleTable="user_roles"
            roleNameCol="role_name" />


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


Mime
View raw message