Joeri,

I think, a mapped drive can't be used for running as a service.  The mappings aren't 
seen by services because noone is "logged in" so no login script runs.  

Chuck



-----Original Message-----
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 10:45 AM
To: 'Tomcat Users List'
Subject: RE: Unable to access shared network drives with Tomcat service


Also remember that UNC in java should use forward slash(/) instead of
backward(\).  Use this or you'll get funny problems from UNC names and
file access.

Wade

-----Original Message-----
From: John Corrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 12:17 PM
To: Tomcat Users List
Subject: RE: Unable to access shared network drives with Tomcat service


Tomcat needs to be logged in as a user with permission to use the S:
drive. You might also need to use UNC paths instead of drive mappings.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 5:31 AM
To: [EMAIL PROTECTED]
Subject: Unable to access shared network drives with Tomcat service






Hi,

I am running Tomcat 4.1.27 as a Windows service in the Windows XP
operating system. I have a problem accessing network shared drives from
within my servlets and JSP-pages.

For instance, if "S" is a mapped drive pointing to something like a
shared network drive "\\shared_server\shared_drive", then this scriplet
returns
"false":

<%
      java.io.File file = new java.io.File("S:/test.txt");
      boolean exists = file.exists();
      out.print("exists: " + exists);
%>

The file "test.txt" does exist, but Tomcat does not see the shared
drive. Running Tomcat in command line mode (no service) does work!

I assume this has something to do with Windows network security?

Can anybody help me?

Thanks,

Joeri


---------------------------------------------------------------------
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]




---------------------------------------------------------------------
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]

Reply via email to