Re: Reading environment variable from Tomcat

2008-08-14 Thread André Warnier
David kerber wrote: Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty("user.name" ) to retrieve the logged in user id. But now that we start tomcat using

Re: Reading environment variable from Tomcat

2008-08-13 Thread Johnny Kewl
- Original Message - From: "Sureka, Sushil" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 13, 2008 8:16 PM Subject: Reading environment variable from Tomcat Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from

RE: Reading environment variable from Tomcat

2008-08-13 Thread Martin Gainty
transmission. > Date: Wed, 13 Aug 2008 21:33:13 +0300 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: Reading environment variable from Tomcat > > +1 > exactly! you can even login with two different users (if you are using > windows server) none of t

Re: Reading environment variable from Tomcat

2008-08-13 Thread David kerber
--- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:47 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Looks like correct behavior to me. You can see that tomcat runs in the System account when you look at it via Process Explorer o

Re: Reading environment variable from Tomcat

2008-08-13 Thread David Smith
ted to internet. Hence we took the same code base (with lot less fat) and ported it on tomcat. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:47 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Looks like c

RE: Reading environment variable from Tomcat

2008-08-13 Thread Caldarale, Charles R
> From: Sureka, Sushil [mailto:[EMAIL PROTECTED] > Subject: RE: Reading environment variable from Tomcat > > Because we are using the app more like a standalone application Then don't run it as a service, just put the startup script call in: C:\Documents and Settings\[userid]\St

RE: Reading environment variable from Tomcat

2008-08-13 Thread Sureka, Sushil
not connected to internet. Hence we took the same code base (with lot less fat) and ported it on tomcat. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:47 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat

Re: Reading environment variable from Tomcat

2008-08-13 Thread David Smith
Looks like correct behavior to me. You can see that tomcat runs in the System account when you look at it via Process Explorer or Task Manager. It has it's own environment separate from any desktop user and can run without any desktop user. This is also why tomcat can't access mapped network

RE: Reading environment variable from Tomcat

2008-08-13 Thread Sureka, Sushil
: Tomcat Users List Subject: Re: Reading environment variable from Tomcat +1 exactly! you can even login with two different users (if you are using windows server) none of them would be running the service unless you change the logged on option. On Wed, Aug 13, 2008 at 9:27 PM, David kerber

RE: Reading environment variable from Tomcat

2008-08-13 Thread Sureka, Sushil
- From: David kerber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:27 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Sureka, Sushil wrote: > Hi, > > > > I have run into an issue related to starting tomcat as a service. When > we we

Re: Reading environment variable from Tomcat

2008-08-13 Thread Youssef Mohammed
+1 exactly! you can even login with two different users (if you are using windows server) none of them would be running the service unless you change the logged on option. On Wed, Aug 13, 2008 at 9:27 PM, David kerber <[EMAIL PROTECTED]> wrote: > Sureka, Sushil wrote: > >> Hi, >> >> >> I have ru

Re: Reading environment variable from Tomcat

2008-08-13 Thread David kerber
Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty("user.name" ) to retrieve the logged in user id. But now that we start tomcat using a service, the get p

Reading environment variable from Tomcat

2008-08-13 Thread Sureka, Sushil
Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty("user.name" ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns "SYS