Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)
Dear all, I am really really sorry that I have to repost the question cause I really couldnt find any solution for that. I really wish there is someone out there could help me me out here... I wish to render the Tomcat 4.0 to access my local directory, what I mean is, I store some files in a directory, and that I could use servlet to download these files. I have tried to do the following: FileInputStream file = new FileInputStream(C:\\Inetpub\\content\\test.txt); or replace the \\ with File.Separator, but the Tomcat 4.0 keeps complaining that the directory is not accessible. I presume I have to do some modification on the server setting or configuration, but I have no idea at all how to proceed. Please help. Thank you very much. Best regards, Jo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)
Jordan, can you please provide the stack trace of the exception thrown by Tomcat? Thanks, -shawn http://www.shawn-wilson.com On Thu, 11 Apr 2002, Jordan C N Chong wrote: Dear all, I am really really sorry that I have to repost the question cause I really couldnt find any solution for that. I really wish there is someone out there could help me me out here... I wish to render the Tomcat 4.0 to access my local directory, what I mean is, I store some files in a directory, and that I could use servlet to download these files. I have tried to do the following: FileInputStream file = new FileInputStream(C:\\Inetpub\\content\\test.txt); or replace the \\ with File.Separator, but the Tomcat 4.0 keeps complaining that the directory is not accessible. I presume I have to do some modification on the server setting or configuration, but I have no idea at all how to proceed. Please help. Thank you very much. Best regards, Jo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)
Dear Shawn Thank you very much for your email. I just figure out myself... All I have to do is to put the files inside the webapps\myworkDir But... if I want to do this outside the webapps... does it mean I couldn't use the standalone Apache Tomcat 4.0 to do that? Thank you very much. Best regards, Jordan Cheun Ngen, Chong INF-4067 Universiteit Twente Postbus 217 7500 AE Enschede The Netherlands Distributed and Embedded Systems (DIES) Office Phone: +31 53 4894655 Web site: http://www.cs.utwente.nl/~chong Email Add.: [EMAIL PROTECTED] -Original Message- From: Shawn A. Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 8:42 PM To: Tomcat Users List Subject: Re: Local Directory Access using Tomcat 4.0 (SORRY TO REPOST) Jordan, can you please provide the stack trace of the exception thrown by Tomcat? Thanks, -shawn http://www.shawn-wilson.com On Thu, 11 Apr 2002, Jordan C N Chong wrote: Dear all, I am really really sorry that I have to repost the question cause I really couldnt find any solution for that. I really wish there is someone out there could help me me out here... I wish to render the Tomcat 4.0 to access my local directory, what I mean is, I store some files in a directory, and that I could use servlet to download these files. I have tried to do the following: FileInputStream file = new FileInputStream(C:\\Inetpub\\content\\test.txt); or replace the \\ with File.Separator, but the Tomcat 4.0 keeps complaining that the directory is not accessible. I presume I have to do some modification on the server setting or configuration, but I have no idea at all how to proceed. Please help. Thank you very much. Best regards, Jo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Local Directory Access using Tomcat 4.0 (SORRY TO REPOST)
i have code that writes to a file outside of my servlet. specifically, in /tmp. i didn't have to configure tomcat (version 4.02) for writing outside of my webapp. but then again, i'm using jdk 1.4's logging mechansim to do this, so maybe that bypasses whatever security that's in jakarta... On 2002.04.11 11:55 Jordan C N Chong wrote: But... if I want to do this outside the webapps... does it mean I couldn't use the standalone Apache Tomcat 4.0 to do that? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]