You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jorg Heymans <jh...@domek.be> on 2004/03/22 14:00:27 UTC

2.0.x as default context on tomcat 5.0.19

Has anyone configured cocoon as the root context on tomcat 5.0.19?

On 4.1.x it's sufficient to do
<Context path="" docBase="cocoon" debug="0">
</Context>

On 5.0.19 i get the cocoon Resource Not Found page with above config.

Sitemap that (should) execute:

    <map:match pattern="">
      <map:generate type="file" src="index.html"/>
      <map:serialize type="html"/>
    </map:match>

if i change it to <map:match pattern="index.html"> then it's working fine.

Something i'm missing here?

Regards
Jorg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: 2.0.x as default context on tomcat 5.0.19

Posted by Joerg Heinicke <jo...@gmx.de>.
On 22.03.2004 14:00, Jorg Heymans wrote:

> Has anyone configured cocoon as the root context on tomcat 5.0.19?
> 
> On 4.1.x it's sufficient to do
> <Context path="" docBase="cocoon" debug="0">
> </Context>
> 
> On 5.0.19 i get the cocoon Resource Not Found page with above config.
> 
> Sitemap that (should) execute:
> 
>    <map:match pattern="">
>      <map:generate type="file" src="index.html"/>
>      <map:serialize type="html"/>
>    </map:match>
> 
> if i change it to <map:match pattern="index.html"> then it's working fine.
> 
> Something i'm missing here?

I don't think so. I have it "working" the same way as above:
<Context path="" docBase="D:\cocoon-2.0\build\cocoon\webapp\" debug="0"/>

I get the start page (http://127.0.0.1:8080/), but many pages behave 
strange. The reason might be that Tomcat 5 adds trailing slashes to URLs 
where it should not:
Called http://127.0.0.1:8080/welcome,
got    http://127.0.0.1:8080/welcome/
The latter is of course not matched correctly, only by a "catch all" 
directory generator match.

Now I don't know how much this is related to Cocoon 2.0 and I don't have 
the time and need to investigate this deeper. So this mail was more a 
confirmation.

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org