You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ir...@gmail.com on 2004/06/23 21:23:57 UTC
Permission problem?
Hi,
I am trying to run a command line from inside cocoon (2.0.3) hosted on
tomcat (4.0.5) on a windows 2003 advanced server.
To do this i have created a new action which i call if the pattern
matches. inside the action i am using
Runtime.getRuntime().exec(cmdline);
The error stream from the command tells me that it couldn't open one
of the input files (actually an xml description of an mpeg). i tried
running the same command from a simple java application from the same
directory and it works perfectly. executing a simple application
(without any command line params) from inside the action also works
fine. so i thought the problem might be with the permissions, i gave
all users full permission to all files inside my webapp. but still the
problem persists.
any suggestions?
TIA,
irfan.
--
Department of Computer Science and Networks
Ecole Nationale Superieure des Telecommunications
46, rue Barrault, Paris 75013
Phone: +33 (0)1 45 81 85 43
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Permission problem?
Posted by ir...@gmail.com.
Hi again,
So i partially figured the problem out. It's a problem of paths. If i
give absolute paths for the input files it works. here is my directory
structure:
webapp
|
|-----------cocoon
|
|-----------------stream (my webapp)
|
|-------------my.exe
|-------------my.dat (given as input argument to my.exe)
Now when i give exec("my.exe my.dat"); it doesn't work, although
my.exe is called but it doesn't find my.dat in the same directory!
but if i say exec("my.exe c:\jakarta-cocoon.....\stream\my.dat"); then
it works just fine!
TIA,
Irfan.
On Wed, 23 Jun 2004 21:23:57 +0200, irfan.hamid@gmail.com
<ir...@gmail.com> wrote:
>
> Hi,
>
> I am trying to run a command line from inside cocoon (2.0.3) hosted on
> tomcat (4.0.5) on a windows 2003 advanced server.
>
> To do this i have created a new action which i call if the pattern
> matches. inside the action i am using
> Runtime.getRuntime().exec(cmdline);
>
> The error stream from the command tells me that it couldn't open one
> of the input files (actually an xml description of an mpeg). i tried
> running the same command from a simple java application from the same
> directory and it works perfectly. executing a simple application
> (without any command line params) from inside the action also works
> fine. so i thought the problem might be with the permissions, i gave
> all users full permission to all files inside my webapp. but still the
> problem persists.
>
> any suggestions?
>
> TIA,
> irfan.
>
> --
> Department of Computer Science and Networks
> Ecole Nationale Superieure des Telecommunications
> 46, rue Barrault, Paris 75013
> Phone: +33 (0)1 45 81 85 43
>
--
Department of Computer Science and Networks
Ecole Nationale Superieure des Telecommunications
46, rue Barrault, Paris 75013
Phone: +33 (0)1 45 81 85 43
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org