Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 80163 invoked by uid 500); 11 Dec 2002 16:19:39 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 80152 invoked from network); 11 Dec 2002 16:19:38 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Calling resources from mounted sitemaps Date: Wed, 11 Dec 2002 17:19:35 +0100 Message-ID: <715A1A264A45CB4CA102C18A50B75C190134BC82@mlnexc01.emea.cpqcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Calling resources from mounted sitemaps Thread-Index: AcKgqNkscSODTwHTShOSUzLSRhaj6AAhz/2wAAAFYrA= From: "Bordet, Simone" To: X-OriginalArrivalTime: 11 Dec 2002 16:19:39.0252 (UTC) FILETIME=[1AA89340:01C2A131] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, > Did you try the cocoon pseudo-protocol? resource=3D"cocoon://stdout"> for the root sitemap,=20 > 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.r= esource_stdout(org.apache.cocoon.components.pipeline.StreamPipeline, = 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 >=20 >=20 > Hi,=20 > I could not find a way to call resources in the root sitemap=20 > from a mounted sitemap.=20 > I have my resources defined in the root sitemap, and I'd like=20 > to call these resources from sub-sitemaps.=20 > In the sub sitemap I have a simple matcher:=20 > =20 > =20 > =20 > The resource stdout is defined in the root sitemap, as it=20 > will be used by several sub sitemaps.=20 > If I move the sub sitemap in the root sitemap everything works fine.=20 > I could not find any way to make this working, but since I'm=20 > fairly new to cocoon maybe there are better ways to achieve=20 > what I'd like. > I'm using Cocoon 2.0.3 and Tomcat 4.1.12.=20 > Thanks=20 > Simon=20 >=20 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: