Depends of course. 

If you want to make the package visible to all webapps, then you place
it in /common/lib

There are docs on this on the tomcat homepage.

Stef.

-----Original Message-----
From: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]] 
Sent: Freitag, 7. Juni 2002 13:43
To: Tomcat Users List (E-mail)
Subject: RE:access to secure aplications with JDBCRealm authentification


> Hi ! 
> 
> I am trying to secure my application thought JDBCRealm
> 
> When I access to my application and after introducing the required
user and password I have the following error.
> 
> # 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:3
07)
>         at
org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(JDBCRealm.java:23
9)
>         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(AccessIntercep
tor.java:359)
>         at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:902)
>         at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
>         at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp1
3Interceptor.java:341)
>         at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:49
4)
>         at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:516)
>         at java.lang.Thread.run(Thread.java:479)
> 
> 
> where should be the org.gjt.mm.mysql.Driver driver?
> and where is especified the location of the driver?
> 
> 
> 
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to