Thank you all for the assistance. The static content works now but the include files via directive <%@ page import="symlink/includefile.jsp"%> does not work so I guess we are staying with 4.0 for now.
For some reason I've been searching the mailing list on mikal.org as the link I got from jakarta.apache.org. It is clear that that list is outdated. I have bookmarked http://marc.theaimsgroup.com/?l=tomcat-user and will be keeping an eye on you guys from there. Keep up the support. Thank you again. Nick. -----Original Message----- From: Shapira, Yoav [mailto:Yoav.Shapira@;mpi.com] Sent: Wednesday, October 30, 2002 6:23 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.x not allowing symlinks for static content. Hi, Other people have run into this. The allowLinking attribute goes inside the Context element. For example, from someone's else's server.xml: <Context path="/myapp" docBase="myapp" debug="0" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_myapp_log." suffix=".txt" timestamp="true"/> <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" docBase="" /> </Context> A mailing list archive search would show you more information. For example, http://marc.theaimsgroup.com/?l=tomcat-user&w=2&r=1&s=allowLinking&q=b I agree that this should be better documented. There's also a possibly relevant bug in the FileDirContext implementation itself. Finally, please do not follow the algorithm of "post to the user list, and if I get no answer post to the developer list". It's not likely to increase your chance of getting a response, but it may annoy a few people ;) Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za] >Sent: Wednesday, October 30, 2002 11:13 AM >To: Tomcat Users List >Subject: RE: Tomcat 4.1.x not allowing symlinks for static content. > >Typical me having problems that no one else has experienced ever. I hope >someone still sees this post maybe I should post it on the developer list ? > >Thank you for all who read this post. > >It is still in an open state and I still haven't found any solution to the >problem. > >Nick. > >-----Original Message----- >From: Nick Lombard (VSP) >Sent: Wednesday, October 30, 2002 2:29 PM >To: [EMAIL PROTECTED] >Subject: Tomcat 4.1.x not allowing symlinks for static content. > > >Good day. > >We are experiencing problems with symlinks in an application (context) >directory in that tomcat refuses to follow the link and returns that the >resource cannot be found. > >We are running Tomcat 4.1.12, JDK 1.4.1.01 on Linux. > >The Release notes states the following. > >--------------------------- >Symlinking static resources: >--------------------------- > >Unix symlinks will not work when used in a web application to link >resources >located outside the web application root directory. > >This behavior is optional, and the "allowLinking" flag may be used to >disable >the check. > > >What we are doing is placing a symlink for common resources accross our >applications in each webapp. This contains stylesheets, images etc. These >sources are served as if they belong to the application ie. through the >symbolic link. > >We had no problems with Tomcat 4.0.x but now it seems that symlinks are >disabled by default. > >The above entry found in the release notes stating that the "allowLinking" >flag may be used to disable the check is all fine and well if I can only >work out where to set this flag. No further mention can be found in the >documentation or anywhere on this list (If I didn't miss it). > >Is anyone else experiencing the same problem and could you please reply >with >a solution ? > >Thank you in advance. >Nick Lombard. > >-- >To unsubscribe, e-mail: ><mailto:tomcat-user-unsubscribe@;jakarta.apache.org> >For additional commands, e-mail: ><mailto:tomcat-user-help@;jakarta.apache.org> > > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
