|
From: Sal I. <sal...@vo...> - 2004-03-08 23:43:32
|
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?
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|