Hi Angelo,

Angelo Chen wrote at Sonntag, 8. Februar 2009 11:42:

> 
> Hi,
> 
> I have a web app running in tomcat, in the app context I have a symbolic
> link to a directory in the file system so that I can refer to files in
> that directory as: http://localhost:8080/myapp/pic_dir/picture001.jpg
> 
> When I use maven jetty:run, I can do it as following:
> 
> <plugin>
>     <groupId>org.mortbay.jetty</groupId>
>     <artifactId>maven-jetty-plugin</artifactId>
>     <configuration>
> <contextPath>/</contextPath>
>        <contextHandlers>
>           <contextHandler
> implementation="org.mortbay.jetty.handler.ContextHandler">
>                   <contextPath>/pic_dir</contextPath>
>                   <resourceBase>/Users/guest/pic_dir</resourceBase>
>                   <handler
> implementation="org.mortbay.jetty.handler.ResourceHandler"></handler>
>         </contextHandler>
>        </contextHandlers>
> </configuration>
> </plugin>
> 
> now I'd like to use maven tomcat:run for testing, it works, but I can't
> refer to /myapp/pic_dir/picture001.jpg, what is the equivalent way of
> doing this under tomcat plug in?

Tomcat does not follow symbolic links by default. You can configure this in
Tomcat's server.xml by adding the allowLinking attribute:

<DefaultContext allowLinking="true"/> 

- Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to