Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAAS with Tomcat - Trouble locating Config file

843811May 9 2003 — edited Sep 10 2003
I am trying to use JAAS with Tomcat. I have a sample application that uses a PassiveCallbackHandler with DB LoginModule. The sample application works greate when I am running it from a command line with this command.
java -Djava.security.auth.login.config=jaas.config JaasTest
However, when I request the JSP page that utilizes this LoginModule, I get an error - "java.lang.SecurityException: Unable to locate a login configuration".

My question is, how do I setup Tomcat so it will know where jaas.config file is.

I would really appreciate it if someone can help me with this.

Thank you much!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2003
Added on May 9 2003
6 comments
501 views