RE: secure aplications with JDBCRealm

2002-06-08 Thread Dennis van den Berg

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:[EMAIL PROTECTED]]
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




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




AW: access to secure aplications with JDBCRealm authentification

2002-06-07 Thread Friedli Beat

Put it in the common/lib

mit freundlichen Grüssen 

Galexis AG 
Beat Friedli · SW-Entwicklung (DDIS/ASW)
Grubenstrasse 11 · CH-3322 Schoenbuehl
tel: +41 (0)31 858 72 32 · fax: +41 (0)31 858 78 81




> -Ursprüngliche Nachricht-
> Von: Urtzi Larrazabal [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 7. Juni 2002 13:43
> An: Tomcat Users List (E-mail)
> Betreff: 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(JDBCRe
> alm.java:307)
> > at 
> org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(JDBCRea
> lm.java:239)
> > at 
> org.apache.tomcat.modules.aaa.RealmBase.checkPassword(RealmBas
> e.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(Acce
> ssInterceptor.java:359)
> > at 
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:902)
> > at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> > at 
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
> ction(Ajp13Interceptor.java:341)
> > at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:494)
> > 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
> > 
> >  > 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]>




RE: access to secure aplications with JDBCRealm authentification

2002-06-07 Thread Stefan.Landro

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




RE:access to secure aplications with JDBCRealm authentification

2002-06-07 Thread Urtzi Larrazabal


> 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: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:902)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
> at 
>org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
> 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
> 
>  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:   
For additional commands, e-mail: 




secure aplications with JDBCRealm

2002-06-07 Thread Urtzi Larrazabal


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:902)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:479)



server.xml




--
To unsubscribe, e-mail:   
For additional commands, e-mail: