> This is probably a faq.
>
> I'm trying to server jsp pages from a webdav repository. All files with
> the *.jsp url are catched by JspServlet, but it seems that jspServlet
> only looks for the jsp as a file under the web applications directory.
>
> Isn't the JspServlet supposed to follow the rules specified in the
> web.xml file in tomcat 4.0.*?
>
> Log extract;
>
> 2002-01-30 12:15:30 StandardContext[/repository]: Mapping
> contextPath='/repository' with requestURI='/repository/test.jsp' and
> relativeURI='/test.jsp'
> 2002-01-30 12:15:30 StandardContext[/repository]: Decoded
> relativeURI='/test.jsp'
> 2002-01-30 12:15:30 StandardContext[/repository]:   Trying exact match
> 2002-01-30 12:15:30 StandardContext[/repository]:   Trying prefix match
> 2002-01-30 12:15:30 StandardContext[/repository]:   Trying extension match
> 2002-01-30 12:15:30 StandardContext[/repository]:  Mapped to servlet
> 'jsp' with servlet path '/test.jsp' and path info 'null' and update=true
>
> Then a 404.
>
> If I put the test.jsp file under webapps/repository/test.jsp as a file
> it works.

You can do that, but it's a lot more complex than that to do. Basically, you
need an implementation of a Tomcat 4 Resources written to access a Slide
namespace (instead of, for example, the filesystem).
I just wrote (yesterday) some docs on that:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/resources.html

The standalone Slide server uses that to do what you want.
You can look at the source in wrappers/jndi/SlideDirContext.java. It's not
trivial to configure, however, so the easiest is to just use (and maybe
tweak) the standalone server.

Remy


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to