|
From: Leif M. <le...@ta...> - 2005-02-13 11:40:41
|
Shai,
Write a little method which iterates over all of the properties
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
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=c:\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
>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
>>>
>>>
>>>
>>>
>>>
>
>
>-------------------------------------------------------
>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=6595&alloc_id=14396&op=click
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|