You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/23 14:40:27 UTC

DO NOT REPLY [Bug 33709] New: - Unable to excute an external command

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33709>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33709

           Summary: Unable to excute an external command
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: blocker
          Priority: P3
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: apalumbo@e-cml.org


Hello,

we are working on Windows 2003 server with jdk 1.5.
Tomcat is running as service with the following start options:

-Dcatalina.home=C:\Java\Tomcat 5.5
-Dcatalina.base=C:\Java\Tomcat 5.5
-Djava.endorsed.dirs=C:\Java\Tomcat 5.5\common\endorsed
-Djava.home=C:\java\jdk\jre
-Djava.security.manager
-Djava.security.policy=C:\Java\Tomcat 5.5\conf\catalina.policy
-Djava.security.debug=failure

In my catalina.policy I have this:

grant codeBase "file:${catalina.home}/webapps/hl_pc49/-" {
	permission java.security.AllPermission;
};

But when I would like to execute an external command in my servlet as:
Runtime.getRuntime().exec(myCommand); //myCommand is a rsh command to an Unix 
machine

In my Windows processes, I see the command launching, but stops after one 
second. This command works fine on command prompt and the time of execution is 
about 10 seconds.

In the Windows services I add to Tomcat Service in the properties to Log on as 
Administror but the issue is the same.

When I programmed my application I was on Windows XP with eclipse 2.1 the 
problem has never existed.

Without catalina.policy---> same issue.

Is it a bug?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org