wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Unable to Access Files In Network Mapped Drive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to Access Files In Network Mapped Drive" Watch "Unable to Access Files In Network Mapped Drive" New topic
Author

Unable to Access Files In Network Mapped Drive

Veerendranag Banka
Greenhorn

Joined: Nov 30, 2012
Posts: 19
[size=12]Hai,
Iam Veerendranag I have a Problem that Tomcat 6 windows Service Local System Account Unable To Access The Files In The Network Mapped Drive,
How To Make Tomcat6 Windows Service Make Access To The Files Using Only Local System Account Instead Of Domain Name Can I do Any Configurations for
That,Any Help is Appreciated.
Regards,
Veerendranag
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Well, first of all a Windows service doesn't have any mapped drives. So if when you sign on you see your N drive mapped to \\server\whatever, don't assume that a Windows service sees that as well. It doesn't. So your code is going to have to use the UNC path \\server\whatever\thing and not the mapped version N:\thing.

And second of all a Windows service can't access files via a UNC path unless it is running under a specific user ID which has access to that UNC path. Those local system accounts don't work for that.

This is true for all Windows services, not just for Tomcat running as a Windows service.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to Access Files In Network Mapped Drive