If I have this in my server.xml <Context path="/foo" docBase="foo" debug="0" reloadable="true" crossContext="true"> <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true"/> </Context> Tomcat forgets the allowLinking="true" setting if (a) I edit the application's web.xml file, triggering an automatic reload, or (b) I use Tomcat Manager to Stop the application and then Start it again After I do either of these things, Tomcat can no longer find any resource in the application if it has to traverse a symbolic link.
This behaviour is still there in 4.1.29. Running on Linux/RH9 and Sun JDK 1.4.2_03. This is actually quite annoying, as it means that when one context using symlinks needs to updated, the whole tomcat must be restarted...
This behaviour is still there in 4.1.31. Running on HP-UX B.11.00 and Sun JDK 1.4.2_05. Is there a fix for that?
Updating version to 4.1.31 to reflect your testing. The suggestion is, and has been for over a year now, to upgrade to 5.x, because 4.x is not actively maintained.
This has now been fixed in CVS HEAD. As Yoav noted it has been fixed in 5.x for some time. Please note that whilst I have every intention of releasing a 4.1.32 at some point, there are no firm plans present and I don't see it happening until the New Year at the earliest.
*** Bug 17557 has been marked as a duplicate of this bug. ***
*** Bug 22869 has been marked as a duplicate of this bug. ***