Re: Execute external program from tomcat servlet

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 09/29/04


Date: Wed, 29 Sep 2004 09:03:35 GMT

On 28 Sep 2004 23:32:07 -0700, Fredrik wrote:
> Andrew Thompson <SeeMySites@www.invalid> wrote in message news:<4h8zgxq9029i.pesjrbphczig$.dlg@40tude.net>...
>> On 28 Sep 2004 14:46:07 -0700, Fredrik wrote:
>>
>>> ...What could be the cause of my problem?
..
>> I would also be helpful if you provide a self-contained
>> example of your code that does not work.
>> <http://www.physci.org/codes/sscce.jsp>

> I didnt't get an exception. That would make things alot easier.
> I didn't include any code since i've tried almost every example that i
> could find, with the same result: _nothing happens_ The external
> program never seems to get executed.
> I've tried everyting from simple ones like
>
> try {

Put something there that is 'self-contained' and I will try it..
...
> http://www.codeproject.com/useritems/ProcessHelper.asp

Wants a log-in..

> Both of them works splendid when executed as standalone java, but not
> from tomcat.

Logs!

> I didn't include them because i thought this was a "theroretical"
> problem with running external programs from java programs running as a
> windows service, not a code-error.

I do not know enough to say, but you are going to need
to get the server gurus in on this one.

> Please excuse my bad English.

You're English is fine, but please make sure you read the
URL's I give you, the code you supplied above was not what
I described in the link.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.lensescapes.com/  Images that escape the mundane