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!