File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes JAAS + Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JAAS + Tomcat" Watch "JAAS + Tomcat" New topic
Author

JAAS + Tomcat

junchen liu
Greenhorn

Joined: Feb 19, 2008
Posts: 26
I am using Netbeans to develop web application which using JAAS.

when I trying to loging in tomcat throws the following exceptions:

javax.security.auth.login.LoginException: unable to find LoginModule class: gov.iran.mod.security.PEWLoginModule
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:363)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
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:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)


Do I need to put the LoginModule class file into the Tomcat lib/ folder?
If the answer is yes, the LoginModule class is packed in the .war file,
I can't seprate it form the other source classes can I?
 
jQuery in Action, 2nd edition
 
subject: JAAS + Tomcat
 
Similar Threads
Tomcat issue with custom JAASLogin module
JAAS Authentication. Confusion about use case.
Basic Websphere Security Questions
JAAS Realm-Error
JAAS LoginModule