cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leo leonid <>
Subject Re: Resource not found "/"
Date Tue, 15 Oct 2002 08:44:50 GMT

On Dienstag, Oktober 15, 2002, at 02:14  Uhr, Bryan Zarnett wrote:

> I am currently trying to make a weblog application I created the main  
> association to my root URL. Right now I have it setup so that the  
> welcome.xhtml is called whenever I hit my URL.  What I want to happen  
> is that i want my weblog sitemap to be called and the "foo.html" to be  
> passed to my weblog sitemap.
> For example, if the URL is when I pass down  
>, my weblog sitemap is invoked.
> The follow is the main sitemap entry I have created in the main  
> sitemap and blows up.
> <map:pipelines>
> 	<map:pipeline>
> 		<map:match pattern="/**">
>       		<map:mount uri-prefix="/"  
> src="file:///usr/local/jakarta-tomcat4.1.10/webapps/cocoon/weblog/xml/ 
> sitemap.xmap"/>
> 	</map:match>
> </map:pipeline>
> The exception I get is:
> "Resource not found", The requested URI "/" was not found.
> I presume this has to do with my pattern and uri-prefix.
> I left the Cocoon book at work so I can't use it as a resource in this  
> circumstance.

use this in your main xmap

		<map:match pattern="**">
       		<map:mount uri-prefix="" src="weblog/xml/sitemap.xmap"/>

and something like this in your sub xmap

			<map:match pattern="">
						<map:redirect-to uri="/index.html"/>


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