jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Schroeder <has...@webtuitive.com>
Subject Re: Displaying images outside the webapp container
Date Thu, 04 Dec 2008 22:48:39 GMT
Brian Burch wrote:

> This a known tomcat issue - that it will not follow a symlinked 
> directory by default. 
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> says to define a context.xml in the webapp META-INF directory. Mine 
> simply contains <context allowLinking="true"/>, because the 
> documentation recommends NOT specifying docBase.

Is that a typo? Because it's <Context..., not <context...

> INFO: default: DefaultServlet.serveResource:  Serving resource 
> '/files/pictures/2008/11-lateAutumn/DSCF2686.JPG' headers and data
> This looks suspicious to me - the url has a leading slash, rather than 
> relative to the webapp docBase, and tomcat doesn't serve up the image 
> file! Presumably, I've missed an important detail.

You did say the 'view source' URL was correct, yes?

Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-621-3445   === http://webtuitive.com

                           dream.  code.

View raw message