-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Leon,

On 1/28/15 3:16 PM, Leon Rosenberg wrote:
> On Wed, Jan 28, 2015 at 8:48 PM, David kerber
> <dcker...@verizon.net> wrote:
> 
>> On 1/28/2015 2:03 PM, Hyder Hashmi wrote:
>> 
>>> Hi,
>>> 
>>> I am working on a small project and need your help in this.
>>> 
>>> I have a java program in which I read and write in a file that
>>> is located in the current folder.
>>> 
>>> Now I have written a few servlets and trying to use the
>>> previous code along with servlets.
>>> 
>>> Tomcat is searching for the file in its bin folder and giving 
>>> FileNotFoundException.
>>> 
>> 
>> To Tomcat, the /bin folder is it's current directory.
> 
> 
> Not quite right, the directory you started from is your current
> directory. Which can be TOMCAT_HOME or TOMCAT_HOME/bin etc.

While true, in the OP's case, the cwd actually *is* the bin/ directory.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUyWhYAAoJEBzwKT+lPKRYSNcQAJUbq/kUfk3qJq1y9lRrh4v4
QRoIxzGfxHeTIxhYKi6Wpbb7/LHv2i8Ueh7fmW56yXIYcWqJuddoVEaa7+MNdNzb
BE8K+yOKax2KiKQR8RGSydl5XqeKltI+1oPyYsRj8HIWVdBuL1IN4jxe7E5WR11V
j7GLfBo3uHdAJ+2iuBYGyZl3XhqFd1yJeHIwqLhg4pxHIA3TSzDDHJMrKCfLHBDe
6XfSNAvCdrOP3Ae5Mnid8P5MzVKiWguPKqOXhjslXK3+b2M3meSmqyPHzirWd2a8
E5uUNHntAoAn9IqajcvGkd9eq6vizCv34ByyOvW6u/3weMxxhJrvI0ZDZYG7z90X
Lq5J46/Nu4rZYnbk+ZE2DMunadZRtI89js92Wg2OTJBpL39hbnMkah0HL4HMDAQ1
ynWwsaMiUidNY8+JXA+b6KQxgHnHGCqjxRqH55KO1PI7bTc3Ymj6NuUcz/uBvfqp
QtIVd/LGJhQqD+neEOMLHz1uE1v/0DXuRhUCxEf9Alu+FxpS+MNJ5Rf9O7q45qpK
dHKBna/xGvlGaYWwBE7pZxmz64DK+PmCeNelpgsKmfEDC8VWncPnEXlrDNcsQje0
SAUAYB5nH8yyVzd2MVNcZDZBhmXK6Mum4C+C/7pLPqoy3RRZqv4BATrfPRXfUjn7
B+MrupgLXaepeRdKtzJn
=vAqr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to