"Ken Pawliw" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I'm new to Tomcat and have run into a problem that probably has a very
> simple solution. I'm running Tomcat 5.5.7 on Windows XP and want to start
> Tomcat with the security manager enabled. The documentation states the
> following:
> Starting Tomcat With A SecurityManager
> Once you have configured the catalina.policy file for use with a
> SecurityManager, Tomcat can be started with a SecurityManager in place by
> using the "-security" option:
>
>
>     $CATALINA_HOME/bin/catalina.sh start -security    (Unix)
> %CATALINA_HOME%\bin\catalina start -security      (Windows)
>
>
>
>
> This does not work from the Windows Command Prompt as catalina does not
> exist in the bin directory. Furthermore, I want to run Tomcat as a service
> so this would not help even if it did work. I've tried to add 
> the -security
> option via the Monitor Tomcat application by adding the addition argument 
> in
> the Arguments section of the Startup panel. I've tried
> start -security
> start security
> start, security
> and none of these work. I'd very much appreciate advice in the area as 
> I've
> checked the archive and can't seem to find any information.
>

Actually, what you need to do is to add to the Java Options section:
  -Djava.security.manager
  -Djava.security.policy==C:\path\to\tomcat\conf\catalina.policy

If you look in catalina.bat, you will see that this is what the script is 
actually doing when you run it with the '-security' option.

> Thanks,
> Ken
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to