tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Teran <david.te...@cluster9.com>
Subject Re: Windows, Runtime.exec() problems [solved]
Date Fri, 21 Oct 2005 06:39:16 GMT
Well, it was not tomcat, the problem was starting tomcat as windows  
service, then the process invoked by exec cannot use OLE Automation.

regards, David

Am 20.10.2005 um 19:15 schrieb David Teran:

> Hi,
>
> thanks for the quick response, no, the firewall is already  
> deactivated.
>
> regards, David
>
> Am 20.10.2005 um 19:06 schrieb jacob hookom:
>
>
>> 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
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>


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


Mime
View raw message