cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Rossel <>
Subject Re: Merging Cocoon2 and a webapp, same context
Date Tue, 05 Mar 2002 12:26:23 GMT
Florent Soulière wrote:

> OK, I have news with my problem: http://localhost:8080/examples/cocoon 
> works fine, actually, but every other URL in the form 
> http://localhost:8080/examples/cocoon/foobar seems to be resolved by 
> Tomcat instead of Cocoon with its sitemap!!! So for every request I 
> get "Apache Tomcat/4.0.1 - HTTP Status 404".
> How can I force Cocoon resolving in place of Tomcat's???
> I thought that a servlet mapping with the URI "/cocoon" was enough... 
> but apparently not!

You need an explicit rule in the sitemap that matches completely the 
substring of the URL that is after the context name.
Something like
<map:match pattern="**">
 <map:read src="{0}" type="text/html/>

For that you will probably use wildcards (* and **).
Have a look at the default sitemap for an explanation.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message