|
From: Shai S. <Sha...@in...> - 2005-02-13 10:16:33
|
Hi !
thanks Leif and Eyal.
i have tried using your advices but it doesnt seem to be helping.
my log files still go to c:\winnt\temp instead of where i want them to =
go.
i added the set.TEMP=3Dc:\documents and settings\<user name>\local =
settings\temp\ line and that doesnt help either.
i am attaching my configuration file - maybe u guys can find something =
that is wrong in it.
thanks again,
Shai
-----Original Message-----
From: wra...@li... =
[mailto:wra...@li...]On Behalf Of Leif =
Mortenson
Sent: Friday, February 11, 2005 3:00 PM
To: wra...@li...
Subject: Re: [Wrapper-user] problem with logging components
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=20
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=20
sure that the
Wrapper is running as the correct user.
Try adding the following to your wrapper.conf file:
set.TEMP=3Dc:\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=20
location of the
temp directory:
System.out.println( "Temp=3D" + System.getProperty( "|java.io.tmpdir|" ) =
);
System.out.println( "User=3D" + 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:
> =20
>
>>=20
>>
>>Hi !=20
>>
>>i am using the wrapper to run my application.=20
>>
>>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>=20
>>
>>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>=20
>>
>>anyone has any ideas why that happens and how to fix it ?=20
>>
>>thanks,=20
>>
>>Shai Simchi=20
>>
>>Invoke Solutions Ltd.=20
>>
>>+972-3-5756828 (ext. 206)=20
>>
>>+972-66-227746 (mobile)=20
>>
>>+972-3-5756829 (Fax)=20
>>
>>mailto:sh...@in...=20
>>
>>www.invoke.com=20
>>=20
>> =20
>>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|