[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Unable to find LoginModule class, how to solve it?

Hi,

I just recently setup a JAAS setup using the same tutorial as you did:
http://wiki.eclipse.org/Jetty/Tutorial/JAAS

I remember I've had the same exception and I did resolve it by starting from scratch and recreating all config files. So I don't know exactly what my problem was.

However could you please paste:

- All JAAS config files you've created
- The commandline you use to start jetty
- jetty-plus.xml
- web.xml

It's crucial that you don't have any typos in the loginModuleNames, etc. as described in the tutorial.

Cheers,
Thomas

On 9/12/11 8:19 AM, Guofeng Zhang wrote:
Hi,

I developed a login module and configure it following Jetty/Tutorial/JAAS. When I try to log in from my web login page, i got the following error and my page is directed to the login error page:
WARN:oejpj.JAASLoginService:
javax.security.auth.login.LoginException: unable to find LoginModule class: <my login module class>
        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.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:217)
        at org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:184)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:442)
....

I tried to deploy my login module to ${jetty_home/lib, but not succeed.

Your help is appreciated. 

Jetty version: jetty-distribution-8.0.1.v20110908



_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users

-- 
thomas becker
tbecker@xxxxxxxxxxx

http://webtide.com / http://intalio.com
(the folks behind jetty and cometd)