Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: System path being ignored when using Tomcat Windows service?

Jonathan Eric Miller

2006-12-22

Replies:

I think it must have been a permissions problem. I switched to using a
different account and now it works. The systray applet doesn't work. I had
to change it using the normal Services application that's built into
Windows.

Jon

----- Original Message -----
From: "Jon Miller" <jemiller@(protected)>
To: "Tomcat User List" <tomcat-user@(protected)>
Sent: Friday, December 22, 2006 2:56 PM
Subject: System path being ignored when using Tomcat Windows service?


> Hi all,
>
> I have a web application that uses Runtime.exec() to start a process. The
> process that I'm starting is in the system path. The application works
> fine if I'm running the Tomcat platform independent package. However, if I
> use the Tomcat Windows service, it appears that the process can't be
> created because it can't be found. It works if I specify the fully
> qualified path the the executable, but, I want to use only a relative
> path. I'm wondering if the fact that it appears to be ignoring the system
> path has to do with the fact that it's a Windows service, or, if it's an
> issue with Tomcat?
>
> I'm running Tomcat 5.5.20 with Sun JDK 1.5.0_10 and Windows XP SP2. Also,
> I noticed that if I change the user account that the Tomcat service is
> supposed to run as using the system tray applet, it doesn't change the
> settings, it just keep reverting back to LocalSystem.
>
> Has anyone else ran into either of these issues. As far as I can tell, the
> second issue looks like a bug.
>
> Also, I tried setting java.library.path using the applet, but, that didn't
> seem to help.
>
> Jon
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.