cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SAXESS - Hussayn Dabbous <dabb...@saxess.com>
Subject Re: newbies : problem with sitemap.xmap
Date Thu, 13 Feb 2003 15:24:50 GMT
hmm.

what's the name of your cocoon webapplication ?
is it "cocoonsamples" ?
or do you have a subdirectory named cocoonsamples
in your cocoon webapp ?

in the latter case try:

http://localhost:8080/cocoon/cocoonsamples/staticpages/index.html

dont like cocoon in your URL ? then look at

http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerDefaultContext

regards, hussayn


arnaud wrote:
> ok now its work
> 
> just one problem
> 
> when i request http://localhost:8080/cocoonsamples/staticpages/index.html
> i obtain this error in browser (nothing in tomcat stdout)
> 
> ----------------------------------------------
> Cocoon 2 - Resource not found
> 
> type resource-not-found
> 
> message Resource not found
> 
> description The requested URI "/cocoonsamples/staticpages/index.html" was
> not found.
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> request-uri
> 
> /cocoonsamples/staticpages/index.html
> 
> path-info
> 
> staticpages/index.html
> 
> ----------------------------------------------
> 
> 
> 
> 
> but index.html exist in staticpages directory
> 
> 
> cocoonsamples +
>               |
>               +- staticpages
>               |
>               +- WEB-INF +
>                          |
>                          +- classes
> 
> 
> 
> any idea ?
> 
> 
> 
> 
> ----------------------------------------------
> 
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> 
>     <map:components>
> 
>       <map:generators>
>         <map:generator name="html"
> src="org.apache.cocoon.generation.HTMLGenerator"/>
>       </map:generators>
> 
>       <map:transformers default="xslt"/>
> 
>       <map:serializers  default="html"/>
> 
>       <map:matchers>
>         <map:matcher name="referer-match"
> src="org.apache.cocoon.matching.WildcardHeaderMatcher"/>
>       </map:matchers>
> 
>     </map:components>
> 
>    <map:pipelines>
> 
>      <map:pipeline>
>        <map:match type="referer-match" pattern="staticpages/*.html">
>            <map:generate type="html" src="staticpages/{1}.html"/>
>            <map:serialize/>
>        </map:match>
>      </map:pipeline>
> 
>    </map:pipelines>
> 
> </map:sitemap>
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

-- 
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax:     +49-221-56011-20
E-Mail:  dabbous@saxess.com


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message