You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scot Marburger <sj...@sandia.gov> on 2001/06/19 00:43:26 UTC
Jakarta NT Service and -security
I'm trying to use Jakarta NT Service to launch Tomcat at system
startup. I've written a servlet that runs under JDK 1.3.1 that will
run fine if Tomcat is launched from a command prompt using the
startup.bat batch file with the -security option:
startup -security
The servlet reads a configuration file from the directory in which it
resides, does socket I/O with another machine on the network, and
also communicates via RMI with a third computer.
The servlet throws security exceptions if Tomcat is launched without
the -security option.
My challenge is to alter the wrapper.properties file to cause the
-security option to be invoked when Tomcat is launched as an NT
service.
I've tried modifying the wrapper.properties file as follows, but no luck:
wrapper.security=-Djava.security.manager
-Djava.security.policy=$(wraper.tomcat_home)\conf\tomcat.policy
and then
wrapper.cmd_line=$(wrapper.javabin) $(wrapper.security) -classpath ...
My guess is I'm making a syntax error in setting up the command line.
Or, stepping back a bit further, why is the servlet throwing security
exceptions without the -security option (maybe because of the
JKD1.3.1 security manager and file/socket I/O)?
My guess is that this is a fairly straight forward thing to try to
do, but the docs in the jakarta-tomcat download don't seem to address
it.
Thanks in advance for any help,
Scot
--
Scot Marburger
Information Systems & Services 8945-1
Sandia National Laboratories/California
Email:sjmarbu@sandia.gov