2 Sep 2006 09:23
Re: soft link under docroot directory not working
Jan Bartel <janb <at> mortbay.com>
2006-09-02 07:23:20 GMT
2006-09-02 07:23:20 GMT
Newbie190, Take a look at the "How to" on aliased files: http://docs.codehaus.org/display/JETTY/How+to+enable+serving+aliased+files cheers Jan newbie190 wrote: > I am trying to use a softlink on linux to access images stored out of docroot > on same server. It's not working. I see following message in server log > during access. > org.mortbay.http.ResourceCache.getResource(ResourceCache.java:252) >13> > Alias request of 'file:/<actual path and filename>' for 'file:/<soft link > path and filename>' > > I have replaced the directory and filenames in above message with <>. > > The docroot folder is setup as /docroot/static under jetty home using > following configuration > > <Call name="addContext"> > <Arg> > <New class="org.mortbay.http.HttpContext"> > <Set name="ContextPath">/static/*</Set> > <Set name="ResourceBase"><SystemProperty name="jetty.home" > default="."/>/docroot/static</Set> > <Call name="addHandler"> > <Arg><New class="org.mortbay.http.handler.ResourceHandler"/></Arg> > </Call> > </New> > </Arg> > </Call> > > > The softlink is under static directory. It points to another location under > a different directory tree. > > If I remove softlink and copy the file itself, it works. This means docroot > setup is working. When I looked at ResourceCache.java line 252, it seems it > prints the warning I am getting and returns null. Is there a way to make it > work using soft link? > > I'll appreciate any help with this. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jetty-support mailing list Jetty-support <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jetty-support
RSS Feed