Wrox Programmer Forums
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 21st, 2004, 02:44 AM
Registered User
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SymLinks


I am running Tomcat 5 on a Unix machine. I have a file (say abc.xml) which is in fact an alias / symlink to an actual file system inside the webapp.

When i try to download view the (abc.xml) the symlink is not followed and the file is not found.

I found the following on the mailing list which seems to deal with symlinks of Jar files - but not files:

<Context path="/MaeQueryPrototype3"
> docBase="/home/mauro/workspace/MaeQueryPrototype3/web"
> workDir="/home/mauro/workspace/MaeQueryPrototype3/work"
> >
> <Resources
> className="org.apache.naming.resources.FileDirCont ext"
> allowLinking="true"
> docBase="/home/mauro/workspace/MaeQueryPrototype3/web" />
> </Context>


Please help if you have any ideas.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.