tomcat - java.lang.SecurityException: Unable to locate a login configuration -


Hi
I am using Bonita5.2 and Tomcat6.0.19, I exported the application (which is one War file and some config files and libraries) and when I run the application, after the login page, I get the error posted in the Tomcat

 description The server encountered an internal error (), which Prevented from fulfilling this request. Exception java.lang.SecurityException: unable to find login configuration com.sun.security.auth.login.ConfigFile. (Unknown source) sun.reflect.NativeConstructorAccessorImpl.newInstance0 (basic method) sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown source) Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown source) java.lang.reflect.Constructor.newInstance (unknown source) . . . . 

Before starting Tomcat, I run a BAT file with the following content:

 Set BONITA_OPTS = "- Dorg.ow2.bonita.environment = d: \ Tomcat6.0 \ Conf \ bonita -environment.xml "Set LOG_OPTS =" - Djava.util.logging.config.file = d: \ tomcat6.0 \ conf \ logging.properties "Set SECURITY_OPTS =" - Djava.security.auth.login. Config = d: \ tomcat6.0 \ conf \ jaas-standard.cfg "JAVA_OPTS =% JAVA_OPTS %% LOG_OPTS %% SECURITY_OPTS %% BONITA_OPTS% 

I think this error is because jaas config file Not found.

thanks

thanks

thanks

command Specifying the jaas config file on the line as well will also work:

-Djava.security.auth. Login.config = C: /Apps/apache-tomcat-6.0.29/conf/jaas.config


Comments