tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacob hookom <hooko...@yahoo.com>
Subject Re: Windows, Runtime.exec() problems
Date Thu, 20 Oct 2005 17:06:48 GMT
You might be experiencing the same issues I just had
with FTP sockets-- make sure your windows firewall is
disabled.

--- David Teran <david.teran@cluster9.com> wrote:

> Hi,
> 
> i am trying to call a native application from a
> servlet application  
> (specifically an webservice based on axis 1.3) with
> the following code:
> 
>          Process p =
> Runtime.getRuntime().exec(args);
>          StreamReader isr = new
> StreamReader(p.getInputStream()); //  
> just uses separate thread to read from the process
>          StreamReader esr = new
> StreamReader(p.getErrorStream()); //  
> just uses separate thread to read from the process
>          try {
>              p.waitFor();
>          } catch (InterruptedException e) {}
>          Result r = new Result(isr.getResult(),
> esr.getResult());
> 
> the problem is that the application which is called
> with the exec  
> command, a realbasic app which uses OLE to print out
> documents with  
> PowerPoint does not work if this code is called
> inside the tomcat  
> JVM. If i copy paste the code to a simple class,
> compile the class  
> and use the same arguments for the exec, everything
> works fine.
> 
> I am quite new to windows, just have a lot of UNIX
> experience and i  
> am lost here.
> 
> regards, David
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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


Mime
View raw message