Symlinking now works in Tomcat 4.1.16!
The Tomcat developers turned off the ability to create symbolic links (symlinks) in 4.1.x. This really threw a wrench in my ability to upgrade as I use symlinks to point to resources outside my webapp all the time. I don't do it for jars, but for common image or documentation directories. In Tomcat 4.1.12 (the latest release), you were supposed to be able to turn symlinks back on by adding the following to your app's context:
<Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" caseSensitive="false" />
The bad news? This didn't work! I'm happy to report that with the lastest 4.1.16 beta, this does work! So, for instance, if you want to turn on symlinks in the ROOT context, add the following to your server.xml
:
<Context path="" docBase="ROOT" debug="0"> <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" caseSensitive="false" /> </Context>
Posted by Agnieszka on April 19, 2004 at 06:42 PM MDT #
Posted by Matt Raible on April 19, 2004 at 06:49 PM MDT #