JAAS config file

  • Thread starter Marius Hintermann
  • Start date
M

Marius Hintermann

Where can I specify the location and name of a JAAS config file in a
JSP? (I'm using Tomcat) Setting the system property
"java.security.auth.login.config" in catalina.bat seems not to work.

Marius
 
I

Ian DaBodewijk

To specify the location of the JAAS Config file for Tomcat, the best
thing to do is create a file in your Tomcat/bin directory called
setenv.sh (if it doesn't already exist). Then set a variable called
JAVA_OPTS in this script file, like:

JAVA_OPTS="-Djava.security.auth.login.config={FULL PATH OF JAAS CONF}"

Then you need to export JAVA_OPTS.

This approach has worked for me!

PS If you are using Windows, then the file is setenv.bat, not
setenv.sh!! Also, best to avoid editing your catalina.bat file if
possible!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top