Problem solved. Value of the JAVA_OPTS assignment (everything after the first equals sign) needs to be in double quotes. With that fix, webapp now running with jaas security funcitonal.
Jerry
----------------------------------------------------------------------------------------------------------------------------------------------
I am unable to run tomcat with jaas security on my CentOS 5.5 server. When I start tomcat, I see this in the terminal output:
Code: Select all
/opt/apache-tomcat-8.0.30/conf/../bin/catalina.sh: line 250: -Djava.security.auth.login.config==/opt/apache-tomcat-8.0.30/conf/jaas.config: No such file or directory
The file location is specified in catalina.sh as...
Code: Select all
JAVA_OPTS=$JAVA_OPTS -Djava.security.auth.login.config==$CATALINA_BASE/conf/jaas.config
But the file jaas.config does exist at the specified location. I can see it in a directory listing, and I can edit it in vi.
I use an eApps cloud server running CentOS 5.5. I have a webapp installed by .war file in Tomcat 8.0.30.
The webapp was developed on a Windows 10 machine and deployed via .war file to a tomcat 8.0.27 server installed on the Windows 10 localhost. The webapp runs correctly in that environment (with the config file specifiecation in the catalina.bat file).
Can you help me understand why the file that does exist cannot be found when Tomcat starts?
Thanks.
Jerry