Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: tomcat crash with application when doesn't found file

Stefan

2007-02-12

Replies:

mast schrieb:
> HI, today i have test an application, and i have put a wrong path for
> the file i would like to read, but the thing that surprise me is that
> it crash the tomcat server.
> The only things in log is :
> (Location of error unknown)java.io.FileNotFoundException: /home/myfile
> (No such file or directory)
>
> Well, after many try my appli crash the server each time i call it
> with a wrong path, i don t think this very normal and i would like to
> know if there is a way to protect the server against bad application
> like that ?
>
> The problem of a file not found can happen many times and if the
> server crash every time that s a real problem
> thanks for your advice
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
Try again with a new, clean installation of a recent tomcat version.
Requesting unknown resources should result in a error message (return a
status code)

Status report
message /the/wrong/path
description The requested resource (/the/wrong/path) is not available.

--
Stefan


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.