I am not running in a domain, my servers are running in a workgroup
only, and the machine tomcat 5.5 is running on is logged into an
administrator account. It appears that it sees the mapped drives
because if I try to access a file that is not available, I get the
proper JAVA message. When I try to access an existing file, I get a
java.io.FileNotFoundException filename (Access is Denied).
The same user and password exists on the other machine which is why I
can map the drive. I tried a simple experiment and wrote a 5 line JAVA
program and this accessed the drive just fine, but when I put those 5
lines in the servlet, I got the access denied.
How do I change the configuration in the tomcat service to allow it to
see other computers?
Thanks, Dan Gross, ATLC
Mark Thomas wrote:
Daniel L. Gross wrote:
I have a servlet that does a direct read from a mapped drive in
Windows. It works fine in tomcat as long as I use a drive on the local
machine. However, I need to access a mapped drive on a different
machine. When I run the program, I get a FileNotFound error in JAVA and
(access denied) next to it. Is there some permissions that need to be
set so my servlet can access a file on another machine. And how do I
set this in Tomcat/JAVA.
Thanks, Dan Gross ATLC
This comes down to the Windows user Tomcat is running as. You need to
make sure that that user has the necessary access to the network drives.
If you are running as a service, the default user for services has
zero privs on other machines. Usually what is required is to configure
the service to log on as a domain user that has the necessary access.
HTH,
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]