Skip to content
Advertisement

Jaas Basic Authentication tomcat 7

I keep on getting the same error, I have already changed the tomcat7w file that specifies the jaas config file location

JavaScript

I have already added this tom my tomcat7w.exe file.

JavaScript

another is that I also have this realm

JavaScript

so what am I missing? please help me,

I am using netbeans, tomcat 7.0.47.

JavaScript

I have resolved to using glassfish!

Advertisement

Answer

According to http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#JAASRealm

You should set up a login.config file for Java and tell Tomcat where to find it by specifying its location to the JVM, for instance by setting the environment variable: JAVA_OPTS=$JAVA_OPTS -Djava.security.auth.login.config=$CATALINA_BASE/conf/jaas.config

Added

For Windows open startup.bat Add the following line: set JAVA_OPTS=%JAVA_OPTS% -Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config after okHome

e.g.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement