cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Howard" <coc...@leverageweb.com>
Subject RE: Calling resources from mounted sitemaps
Date Fri, 13 Dec 2002 14:48:19 GMT
I'd raise that on the dev list.  What version are you using?  Look in
cocoon.xconf for which sitemap engine you're using (<sitemap ... /> tag).

Geoff

> -----Original Message-----
> From: Bordet, Simone [mailto:Simone.Bordet@hp.com]
> Sent: Wednesday, December 11, 2002 11:20 AM
> To: cocoon-users@xml.apache.org
> Subject: RE: Calling resources from mounted sitemaps
>
>
> Hi,
>
> > Did you try the cocoon pseudo-protocol?  <map:call
> > resource="cocoon://stdout"> for the root sitemap,
> > cocoon:/stdout for one in the same sitemap.
>
> Tried, no luck.
> I've tried also to setup a local resource that calls the resource
> in the root sitemap, again no luck.
>
> It seems to me that resources referenced by a sub sitemap can
> only be local to the sub sitemap, and resources in the root
> sitemap cannot be referenced in any way, as I always get a:
>
> org.apache.cocoon.ProcessingException: Sitemap: resource 'stdout'
> not found: java.lang.NoSuchMethodException:
> org.apache.cocoon.www.file_.D_.Catalina.webapps.cocoon.simon.simon
> _xmap.resource_stdout(org.apache.cocoon.components.pipeline.Stream
> Pipeline, org.apache.cocoon.components.pipeline.EventPipeline,
> java.util.List, org.apache.cocoon.environment.Environment,
> java.lang.String, boolean)
>
> It seems to me that the method is always looked up locally to the
> sub sitemap.
>
> It seems strange to me that resources, that are pipelines
> "factored out" for reuse, cannot be called from a sub sitemap, I
> must miss something very obvious.
>
> Anyone knows how to solve this problem ?
>
> Thanks
>
> Simon
>
> > -----Original Message-----
> > From: Bordet, Simone [mailto:Simone.Bordet@hp.com]
> > Sent: Tuesday, December 10, 2002 5:18 PM
> > To: cocoon-users@xml.apache.org
> > Subject: Calling resources from mounted sitemaps
> >
> >
> > Hi,
> > I could not find a way to call resources in the root sitemap
> > from a mounted sitemap.
> > I have my resources defined in the root sitemap, and I'd like
> > to call these resources from sub-sitemaps.
> > In the sub sitemap I have a simple matcher:
> > <map:match pattern="site">
> >    <map:call resource="stdout"/>
> > </map:match>
> > The resource stdout is defined in the root sitemap, as it
> > will be used by several sub sitemaps.
> > If I move the sub sitemap in the root sitemap everything works fine.
> > I could not find any way to make this working, but since I'm
> > fairly new to cocoon maybe there are better ways to achieve
> > what I'd like.
> > I'm using Cocoon 2.0.3 and Tomcat 4.1.12.
> > Thanks
> > Simon
> >
>
> ---------------------------------------------------------------------
> 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>
>
>
>


---------------------------------------------------------------------
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