|
From: Leif M. <le...@ta...> - 2004-03-14 14:33:55
|
Patrick,
Sal's comment was correct. But the recommended way of configuring
an account is
to make use of the wrapper.ntservice.account and wrapper.ntservice.password
properties. This way the account settings will survive the service
being reinstalled.
Thanks Sal,
Cheers,
Leif
Sal Ingrilli wrote:
>by default services run under the system account which does NOT have access
>to the network.
>you need to set the account for your service to a domained user.
>the system account is different than the administrator account.
>
>control panels | administrative tools | services | your service | right
>click | properties | Log On
>click "This account"
>and enter an account/password that has access to //somemachine
>
>i suggest that you start by using your username/password
>
>-----Original Message-----
>From: wra...@li...
>[mailto:wra...@li...]On Behalf Of
>Pat...@ae...
>Sent: Monday, March 08, 2004 2:41 PM
>To: wra...@li...
>Subject: [Wrapper-user] Network File Access Problem
>
>
>Hi,
>
>I am attempting to write a program that accesses a file on different
>machine.
>
>In a simple standalone program, I can read the file fine. The following code
>produces "file.exists() = true":
>
>String logFilePath = "//somemachine/j2ee_home/myApp.log";
>File file = new File(logFilePath);
>System.out.println("file.exists() = " + file.exists() );
>
>However when I run the same code inside the Java Service Wrapper, the output
>is "file.exists() = false". For some reason I can't access the file.
>
>Does anyone have any information on this problem?
>
>
|