File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JAAS + Tomcat" Watch "JAAS + Tomcat" New topic

JAAS + Tomcat

junchen liu

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: unable to find LoginModule class:
at Method)
at org.apache.catalina.realm.JAASRealm.authenticate(
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

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?
wood burning stoves
subject: JAAS + Tomcat
It's not a secret anymore!