How is the drive mapped? By what logged-in windows user? Is it the same user that Tomcat is running as, and are you sure? ;)
Mike Curwen > -----Original Message----- > From: Randy Paries [mailto:[EMAIL PROTECTED] > Sent: Friday, March 04, 2005 3:51 PM > To: 'Tomcat Users List' > Subject: Help with tomcat on windoze/nfs > > > Hello, > > I have the unfortunate opportunity of having to set up tomcat > on windoze (sorry I am a linux bigot) > > I have this servlet that has to run a windows program. (that > works fine) > > I have to create a directory on a NFS mount. > > In my test servlet, I have this snippet of code(see below) > > If I do /myservlet?&dir=c:/ (is see it ok) > If I do /myservlet?&dir=z:/ (z is a mapped nfs mount, it > does not see it) > > Here is the kicker, I wrote a little class that was basically > the same but just a normal Java app, and it see z:/ OK > > Help??? > > Thanks > > > =========================================================== > //DIR is a param passed in > > PrintWriter out = null; > res.setContentType("text/html"); > out = new PrintWriter (res.getOutputStream()); > > out.println( "looking for dir "+DIR+"<BR>"); > > File fpath = new File(DIR); > out.println("path-->"+fpath.getAbsolutePath()); > if ( !fpath.exists() ){ > out.println("Does not exist"); > }else{ > out.println("exist!!!!"); > } > out.close(); > > =========================================================== > > > > --------------------------------------------------------------------- > 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]
