cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: Calling resources from mounted sitemaps
Date Fri, 13 Dec 2002 14:49:37 GMT
AFAIK it's only possible to use resources in the sitemap, in which they are 


Geoff Howard wrote:
> 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 []
>>>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:
>>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 ?
>>>-----Original Message-----
>>>From: Bordet, Simone []
>>>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"/>
>>>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.


System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

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