hi guys
 
I am trying to get tomcat 5.0 to use the security manager and
catalina.policy when running as a windows service. This works fine when
I run it from startup.bat using the normal "set CMD_LINE_ARGS=
-security" method. However I cant find any documentation - either on the
tomcat site or on the web - on how to tell it to use the security
manager when starting it up as a windows service.
 
So far I'v experimented with the following, using the  'Configure Tomcat
UI' which I assume is the correct place to start when running as a
service.

*       If I add "-security" after 'start' in the arguments field on the
startup tab, I get a message telling me the service started and then
stopped.
*       If I try adding "-security" to the java options tab on the
'Configure Tomcat UI, I get a message telling me simply that tomcat will
not start.
*       If I try adding the line "-Djava.security.manager
-Djava.security.policy=C:\Program Files\Apache Software
Foundation\Tomcat 5.0\conf\catalina.policy" to the java options tab then
tomcat starts, but a bit of experimentation with the permissions in
catalina.policy suggests that it isnt actually using it - even if I
remove essential permissions the application can still access the
relevant files.

Can anyone tell me the correct procedure for ensuring the security
manager is used and catalina.policy referred to when running as a
service in 5.0? It is running on both  XP and Windows 2000 platforms
 
Cheers
peri

**************************************************************************
 
Experience the British Library online at www.bl.uk
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFI - enabled
 
**************************************************************************
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] 
: The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
**************************************************************************

Reply via email to