Hi ,
Can you give me details of configuring Custom LoginModule in Tomcat6.0.18.
Where exactly did you place the custom LoginModuleImpl and principle
classes?
I tried to configure it but i am getting the following exception.

javax.security.auth.login.LoginException: unable to find LoginModule class:
com.test.loginmodule.SampleLoginModule
        at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
        at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
        at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
        at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:399)
        at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:323)
        at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:181)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
        at java.lang.Thread.run(Thread.java:619)




dahoffer wrote:
> 
> Thanks, if possible could you/someone send some examples of how to
> configure
> JAAS with JBoss?  I have it working with Tomcat but need the minimum
> configuration to do the same for JBoss.
> 
> Note, I have a servlet that at startup sets the JAAS configuration, i.e.
> Configuration.setConfiguration(configuration) which sets the LoginModule
> to
> use.  I just need to know how to configure JBoss to work with this
> LoginModule.
> 
> -Dave
> 
> On Tue, May 12, 2009 at 10:56 AM, Caldarale, Charles R <
> chuck.caldar...@unisys.com> wrote:
> 
>> > From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> > Subject: Re: How to configure Tomcat 6.0 with JAAS?
>> >
>> > ... though JBoss uses Tomcat as its default servlet container
>>
>> Unfortunately, JBoss does not use Tomcat's authentication - it has its
>> own.
>>  When we wrote JAAS modules for use on our proprietary OS, we had to do
>> separate implemenations for JBoss and Tomcat.
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you
>> received
>> this in error, please contact the sender and delete the e-mail and its
>> attachments from all computers.
>>
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-Tomcat-6.0-with-JAAS--tp23489670p25398035.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to