|
From: Shai S. <Sha...@in...> - 2005-02-13 14:00:26
|
Hi !
i was able to change the property so that java.io.tmpdir is the temp i =
need the logs to be written to.
and still it writes the logs to c:\winnt\temp
any ideas ?
thanks,
Shai
-----Original Message-----
From: wra...@li... =
[mailto:wra...@li...]On Behalf Of Leif =
Mortenson
Sent: Sunday, February 13, 2005 1:39 PM
To: wra...@li...
Subject: Re: [Wrapper-user] problem with logging components
Shai,
Write a little method which iterates over all of the properties=20
returned by
System.getProperties() and prints their values to the console. Run this =
in both
modes and compare the outputs. Something in there must be different as =
that
is the only place that the JVM can be obtaining information about the=20
system.
Your configuration file looks fine.
Leif
Shai Simchi wrote:
>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=20
>running in a console
>the Wrapper is run as the current user along with all of its =
environment=20
>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=20
>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=20
>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:
>
> =20
>
>>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
> =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
|