tu2012
tu2012

Reputation: 101

Start Tomcat as a Windows service with Security Manager

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?

Upvotes: 6

Views: 3095

Answers (1)

tu2012
tu2012

Reputation: 101

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=...

Upvotes: 4

Related Questions