Hi: Gurus I am having the following exception when I try to fire Tomcat with -security option with JAAS Realm.
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.catalina) I am using Tomcat 6.0.29 on windows XP machine, with JDK 1.6. The way I am starting the catalina engine is something like this @echo off setlocal set CATALINA_HOME=C:\apache-tomcat-6.0.29 set JAVA_OPTS="-Djava.security.manager -Djava.security.auth.login.config=C:\Documents and Settings\xxx\workspace\WebSecurity\WebContent\WEB-INF\projsp.login" call catalina.bat run -security endlocal BTW I also try to add the following lines in catalina.policy file but no luck grant codeBase "file:/C:/Documents and Settings/xxx/workspace/WebSecurity/WebContent/WEB-INF/classes/-" { permission java.security.AllPermission; permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina"; permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager"; permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager.util"; }; Hensley how the JAAS can integrate with Tomcat has almost no real example or documentation, so I am just trying my luck with trails and errors, please let me know if some has any idea why I am having these errors. Thanks, RJ.