Bug 14165 - Deleting a directory with compiled jsp pages causes FileNotFoundException on recompile
Summary: Deleting a directory with compiled jsp pages causes FileNotFoundException on ...
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Jasper 2 (show other bugs)
Version: 4.1.14
Hardware: Other other
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-01 14:09 UTC by John Trollinger
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
this is a war file showing the error (6.72 KB, application/octet-stream)
2002-11-01 14:10 UTC, John Trollinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Trollinger 2002-11-01 14:09:04 UTC
if you have a dir structure like

/
/somedir

and you delete the /somedir from the jspcache then next time you try and get a 
page in that directory you get a FileNotFoundException.

see attached war

after going to index.jsp delete the dir directory in the jspcache and reload 
index.jsp you will see errors in the two iframes instead of the jsp page.
Comment 1 John Trollinger 2002-11-01 14:10:02 UTC
Created attachment 3694 [details]
this is a war file showing the error
Comment 2 Remy Maucherat 2002-11-04 21:17:03 UTC
I may be dumb, but I don't think this is supposed to be supported. I think
Jasper could be made more robust in that particular scenario, but the user is
not supposed to go on a rampage in the work directory without at least
stop/start of the webapp.
Comment 3 John Trollinger 2002-11-21 14:03:58 UTC
has anyone looked at this... if nothing else this makes dev a real pain.
Comment 4 Martin Algesten 2002-11-21 14:07:41 UTC
Why would you want to delete the work directories when developing?
Comment 5 John Trollinger 2002-11-21 14:17:40 UTC
to get rid of all the jsp cache (i guess I could touch each file too..)

also our application allows for the deletion of the cache for our customer for 
reasons to long to explain here.

none the less is it still not a bug??
Comment 6 Martin Algesten 2002-11-21 14:30:31 UTC
I'm not sure if thinking of it as a "cache" helps much since I agree if it was 
a "cache" then you would expect to be able to easily clear it. 

The work directory is in reality more of a practical internal detail of 
Tomcat, rather than being part of any public functionality. The whole thing 
could in theory, even though being crap idea, have been built in memory and 
you wouldn't be able to touch it.

I guess it is unfortunate that you gone as far as exposing these internals to 
your clients, I suspect if you need to have this sorted, you need to look at 
it yourself.
Comment 7 John Trollinger 2002-11-21 14:36:47 UTC
To be honest I agree with most of your points.. 

the only time I realy want to delete it is when getting files from vss because 
sometimes the timestamps are older than what I had localy (i know i can check 
them out with a current timestamp)