How do I use the "-security" option to use a Security Manager? (As per http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_security.txt)

Anil Hemrajani

The "-security" option is used by the tomcat shell scripts (e.g. tomcat.bat), for example:

  tomcat run -security
  tomcat start -security
When the "-security" option is passed in, the tomcat scripts start the VM with the following SecurityManager related parameters:
-Djava.security.manager -Djava.security.policy=="%TOMCAT_HOME%/conf/tomcat.policy" -Dtomcat.home="%TOMCAT_HOME%"