Thanks for the pointer! Not running it as a service made it worked. Guess I'll have to stick to that from now on.
-----Original Message----- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 5:21 PM To: Tomcat Users List Subject: Re: Files, paths and permissions On Tue, Jul 06, 2004 at 02:11:00PM -0400, J?r?me Duval wrote: : Yet these lines of code in my servlet: : File target = new File("\\\\Msi\\nouveau dossier\\","Commande.web"); : if(!target.exists()) { : System.out.println("The file doesn't exist!"); : } : FileWriter fileOutput = new FileWriter(target,true); : : produce: The file doesn't exist! Does the owner of the Tomcat process have write access to that folder? If you're running Tomcat as a service, I understand it has different perms than if you fire it up directly as the logged-in user. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com --------------------------------------------------------------------- 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]
