A servlet, with the help of POJOs, tries to see if a file exists at different locations in the network. It goes thru' a set of locations one by one. When executed, for some locations, it reports that the file does not exist, even though it does actually. Here is the simplified version of the code. The same code when executed outside the container i.e.,from a main() call, it works fine. Any suggestions?
Thanks Ben. Yes, Tomcat runs as a Windows service, with my network user id account. With the same id, like I said, this works fine when run outside the container as a plain Java program with main() method.