Yes, we are doing this successfully. (Linux, java 1.5.0_11, tomcat 5.5.23). As you suggest, you have to set allowLinking="true" attribute in the context element in the webapp's META-INF/context.xml file
We have a different problem with this. Tomcat will follow the link and delete the contents of the linked-to directory when the app is redeployed. We have to be sure that the link is deleted before redeploying. Not a problem if one always deploys from a script but a potential disaster if someone just drops the new war in webapps. This is not the behavior we were expecting. Is this a bug or a feature? :-> -----Original Message----- From: Daniel Stephens [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2008 01:43 PM To: users@tomcat.apache.org Subject: sym link to serve documents within web application. Hey everyone, Has anyone ever tried to serve documents from within a tomcat webapp vai a sym link. We have everything setup in tomcat to "allowLinking" within a context. But I can not get my web app to serve documents via the link.. example below. web-app location - /apps/development/tomcat/webapps/testSiteA within testSiteA I create a sym link called Documents pointed to /src/data/storage/Documents. Now I can upload/write documents via the commons jars with the sym link fine.. everything works great. but if I try to view those via something like.. http://hostname:port/testSiteA/Documents/test123.doc. I keep getting a 404 for file not found. I've been looking around, and trying to set a different context resource in my web.xml, server.xml, etc.. in different configs, but no luck so far. anyone ever done this before? The materials in this message are private and may contain Protected Healthcare Information. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]