To start Tomcat with Security Manager from command line, we do:
bin\catalina.bat start -security
I'm trying to do the similar for Tomcat Service which by default call without security manager:
bin\tomcat6.exe" //RS//Tomcat6
Anybody knows how to start the service with security?
I found an answer for my question: after installing Tomcat as a service, run bin\tomcat6w.exe
. Under Java tab, add these 2 lines:
-Djava.security.manager
-Djava.security.policy=[tomcat_dir]\conf\catalina.policy
If you install the service by your script, add the above lines with ++JvmOptions
(see http://commons.apache.org/daemon/procrun.html)
...\Tomcat6.exe //US//Tomcat6 ++JvmOptions=-Djava.security.manager;-Djava.security.policy=...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With