|
From: Leif M. <le...@ta...> - 2005-02-11 12:59:54
|
Shai,
As Eyal pointed out, this is post likely an environment issue. When
running in a console
the Wrapper is run as the current user along with all of its environment
variables. When
run as a service, the Wrapper runs as the SYSTEM user by default. You
say that you
are specifying a user account, but I still think this is the most likely
problem. When your
application is running as a service, check the Task Manager and make
sure that the
Wrapper is running as the correct user.
Try adding the following to your wrapper.conf file:
set.TEMP=c:\documents and settings\<user name>\local settings\temp\
That will set the environment variable to the specified value before the
JVM is launched.
You can also add the following to your application to verify the
location of the
temp directory:
System.out.println( "Temp=" + System.getProperty( "|java.io.tmpdir|" ) );
System.out.println( "User=" + System.getProperty( "|user.name|" ) );
Cheers,
Leif
Shai Simchi wrote:
>Hi Eyal !
>I am running the service as a user and using the property to set it in my config file.
>any other ideas ?
>thanks
>Shai
>
>-----Original Message-----
>From: wra...@li... [mailto:wra...@li...]On Behalf Of Eyal Bar-Ilan
>Sent: Thursday, February 10, 2005 5:04 PM
>To: wra...@li...
>Subject: Re: [Wrapper-user] problem with logging components
>
>
>when running as a service the temp directory is c:\winnt\temp
>when running as a user the temp directory is c:\documents and
>settings\<user name>\local settings\temp\
>
>use the wrapper.ntservice.account property to run the service as a user
>
>
>
>On Thu, 10 Feb 2005 15:49:47 +0200, Shai Simchi <Sha...@in...> wrote:
>
>
>>
>>
>>Hi !
>>
>>i am using the wrapper to run my application.
>>
>>one of the components in the application is writing different kind of log
>>files to
>> c:\documents and settings\<user name>\local settings\temp\<folder name>
>>
>>when running with the wrapper the logs go to a different place instead the
>>one that is specified above. they go to
>> c:\winnt\temp\<folder name>
>>
>>anyone has any ideas why that happens and how to fix it ?
>>
>>thanks,
>>
>>Shai Simchi
>>
>>Invoke Solutions Ltd.
>>
>>+972-3-5756828 (ext. 206)
>>
>>+972-66-227746 (mobile)
>>
>>+972-3-5756829 (Fax)
>>
>>mailto:sh...@in...
>>
>>www.invoke.com
>>
>>
>>
|