tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarek gh" <analystp...@hotmail.com>
Subject Urgent (SecurityManager and Tomcat services and Runtime.getRuntime().exec ) ??
Date Sun, 28 Apr 2002 09:03:38 GMT
Hi,

i installed Tomcat4.03 on windows 2000 advanced server.

if i have in my jsp code  :
     <%
     Process p=Runtime.getRuntime().exec(Myexe)
     or
     Process p=Runtime.getRuntime().exec("cmd Myexe")
     or
Process p=Runtime.getRuntime().exec("c:\\winnt\\system32\\cmd Myexe")

     ....
     %>
when i used the Apache Tomcat services, this command did not worked
if i stoped this services and started the startup batch file from 
tomcat_dir/bin the command worked properly

and my idea to :
SecurityManager and Tomcat
i don't know how can i pass an parameter to apache tomcat nt services to get 
my securityManager file in dirctory  : tomcat_home/bin
because the security manager include :

java.io.FilePermission("<<ALL FILES>>", "execute"))
and
java.lang.RuntimePermission
this class permit to execute Runtime.exec() from jsp file i think so


any help ?
thx




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message