Hi,Jason Everything is clear ! Thank so much.
- NanFei ----- Original Message ----- From: "Jason Bainbridge" <[EMAIL PROTECTED]> To: "NanFei Wang" <[EMAIL PROTECTED]>; "Tomcat Users List" <[email protected]> Sent: Thursday, May 05, 2005 11:02 PM Subject: Re: Network Disk Not Exist Under Tomcat-5.5.9 On 5/5/05, NanFei Wang <[EMAIL PROTECTED]> wrote: > ----------------------------------- > If I use Tomcat-5.0.18 working in Window2000 and start by startup.bat in > another Dos Window after log-in with administrator, > then the test.jsp will get Y:\ exists()=true This works as you are running Tomcat as the Administrator within the same session that the Y: drive is mapped, it is basically running under the same logon AND session of the logged on user. > If I use Apache Tomcat-5.5.9 which will give web 'Service' automatically, > (no matter if I log-in with administrator or not log-in) > then the test.jsp will get Y:\ exists()=false; This doesn't work as mapped drives are logon and session specific so eve if you rant the service as Adminstrator it wouldn't work (although in some bizarre cases it will but shouldn't be relied on). What you need to do is run the tomcat service as a user that has windows network privileges (and please don't use Administrator even for development that's bad practice, create another network account to use for Tomcat) plus that user needs access to the network share. The version of tomcat is irrelevant it just happens that you are running one as the logged in user and the other as windows service. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
