Re: Executing binary from Servlet

2006-09-13 Thread Mark HB
e happen. How do you start the tomcat and under what id does it run ?? -Sameer Mark HB <[EMAIL PROTECTED]> wrote: HI, It all runs fine as a standalone, and when I print the command that I am running using exec to the screen and then run it myself, it works fine. I had this servlet deploy

Re: Executing binary from Servlet

2006-09-12 Thread Mark HB
main())? Sameer Acharya wrote: Have you tried adding following to your web app permissions in policy file permission java.lang.RuntimePermission "java.lang.Runtime"; -Sameer Mark HB <[EMAIL PROTECTED]> wrote: Hi, My apologies for the confusion, but my previous claim to have sor

Re: Executing binary from Servlet

2006-09-12 Thread Mark HB
urin wrote: Hello, I guess yours is a problem of security manager of tomcat. I think you have to modify some entries of the catalina.policy file. http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html Enrico. - Original Message ----- From: "Mark HB" <[EMAIL

Re: Executing binary from Servlet

2006-09-12 Thread Mark HB
manager of tomcat. I think you have to modify some entries of the catalina.policy file. http://tomcat.apache.org/tomcat-5.0-doc/security-manager-howto.html Enrico. - Original Message - From: "Mark HB" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 12, 2006 10:16 AM Su

Executing binary from Servlet

2006-09-12 Thread Mark HB
Hi, I am looking for some help on a problem I have encountered with executing a binary from a servlet using Runtime.getRuntime().exec() The code that I have is simply executing a binary called "cimmsim": File theDir = new File(curdir+"WORK/"+rand); java.lang.String cmdline = theDir+"/cimmsim -f