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 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

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 run into an

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 were starting tomcat from

RE: Reading environment variable from Tomcat

2008-08-13 Thread Sureka, Sushil
To: 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 [EMAIL

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

RE: Reading environment variable from Tomcat

2008-08-13 Thread Sureka, Sushil
are 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 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]\Start Menu\Programs

Re: Reading environment variable from Tomcat

2008-08-13 Thread David Smith
. 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 correct behavior

Re: Reading environment variable from Tomcat

2008-08-13 Thread David kerber
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 or Task Manager

Re: Reading environment variable from Tomcat

2008-08-13 Thread Johnny Kewl
- Original Message - From: Sureka, Sushil [EMAIL PROTECTED] To: users@tomcat.apache.org 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