[Tomcat 5.5.20] How to use JAASRealm ?

2007-02-13 Thread Stefan Lecho
Hello, In our project we are using a class that extends JAASRealm. This class is deployed in Tomcat 5.5.20. When accessing this class, an exception is generated: java.lang.NoClassDefFoundError: org/apache/catalina/realm/JAASRealm. By copying catalina-optional.jar from server\lib to common\lib, t

Re: [Tomcat 5.5.20] How to use JAASRealm ?

2007-03-07 Thread olivier nouguier
hi, I can't figure out why you need to extend a JaasRealm ? This class "lives" in the server classloader, therein it cannot be and should definitivly never be accessed from your webapp. I think that you missunderstand the way to use the JaasRealm. Please look at my previous post (today) and tell m

Re: [Tomcat 5.5.20] How to use JAASRealm ?

2007-03-07 Thread olivier nouguier
Sorry for the double post: If you really need to use Jaas: 1: Write your own LoginModule (implementing java.security.auth.spi.LoginModule) 2: Write a jaas.conf description file (must be declared with - Djava.security.auth.config ) 3: The appName (TMSLogin) must reference a valid config in t