cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo" <lav...@arsenio.net>
Subject C2rc1: Content aggregation and sub sitemaps (No pipeline matched request)
Date Tue, 25 Sep 2001 13:07:31 GMT
I need to create a XML page as result of aggregation of more XML pages
taken from sub sitemaps (placed into subfolders). The directory tree is
something like:

/sitemap.xmap
	/customer/sitemap.xmap
		/home/sitemap.xmap
		/mailbox/sitemap.xmap
	/admin/sitemap.xmap
		/home/sitemap.xmap
		/mailbox/sitemap.xmap

in every sitemap I defined in a pipeline a 'summary' resource that
should generate an XML composed by aggregation of 'summary' resources of
subfolders or without nothing (il this node is a child). Please ignore
the meaning of this example: It's only an example to show the strange
error I got with cocoon.

This is my root sitemap summary pipeline (customer, guest, admin and
setup are mounted in other sitemaps where summary, again, is defined):

<map:match pattern="summary">
  <map:aggregate element="section">
    <map:part src="cocoon:/customer/summary"/>
    <map:part src="cocoon:/guest/summary"/>
    <map:part src="cocoon:/admin/summary"/>
    <map:part src="cocoon:/setup/summary"/> 
  </map:aggregate>
  <map:transform src="stylesheets/debug2xml.xsl"/>
  <map:serialize/>
</map:match>

This is a child example (defined into guest, admin and setup sub
sitemaps):

<map:match pattern="summary">
  <map:aggregate element="section">
    <map:part src="cocoon:/home/summary"/>
    <map:part src="cocoon:/mailbox/summary"/>
    <map:part src="cocoon:/restaurant/summary"/>
    <map:part src="cocoon:/paytv/summary"/>
    <map:part src="cocoon:/bill/summary"/> 
  </map:aggregate>
  <map:serialize type="xml"/>
</map:match>

And, finally, every other sitemap under that (home, mailbox, restaurant,
paytv and bill) has a pipeline that returns a simple XML (without
aggregation) from XSP:

<map:match pattern="summary">
  <map:generate src="summary.xsp" type="serverpages"/>
  <map:serialize  type="xml"/>
</map:match>

Ok... if I browse these pages (not the root one) here what I got:

/myappname/customer/home/summary -> The valid XML (generated from XSP)
/myappname/customer/summary -> A valid XML (aggregated from its
children)

It seems everything ok, but when I try to browse the root summary I got
a Xml containing only the root element of every aggregation and an error
into the root.log:

HttpProcessor[8080][0]/CocoonServlet: getRealPath for /:
D:\Programmi\jakarta-tomcat\webapps\gportal\
HttpProcessor[8080][0]/CocoonServlet: URL for Root:
file:/D:/Programmi/jakarta-tomcat/webapps/gportal/
HttpProcessor[8080][0]/AbstractEnvironment: Changing Cocoon
context(sitemap.xmap) to prefix()
HttpProcessor[8080][0]/AbstractEnvironment: 	from
context(file:/D:/Programmi/jakarta-tomcat/webapps/gportal/) and prefix()
HttpProcessor[8080][0]/AbstractEnvironment: 	at URI summary
HttpProcessor[8080][0]/AbstractEnvironment: New context is
file:/D:/Programmi/jakarta-tomcat/webapps/gportal/
HttpProcessor[8080][0]/AbstractEnvironment: Resolving
'cocoon:/customer/summary' in context
'file:/D:/Programmi/jakarta-tomcat/webapps/gportal/'
HttpProcessor[8080][0]/AbstractEnvironment: Resolved to
'http://localhost:8080/gportal/customer/summary'
HttpProcessor[8080][0]/AbstractEnvironment: Resolving
'stylesheets/debug2xml.xsl' in context
'file:/D:/Programmi/jakarta-tomcat/webapps/gportal/'
HttpProcessor[8080][0]/AbstractEnvironment: Resolved to
'file:/D:/Programmi/jakarta-tomcat/webapps/gportal/stylesheets/debug2xml
.xsl'
HttpProcessor[8080][0]/AbstractEnvironment: Set the URI Prefix (OLD=,
NEW=)
HttpProcessor[8080][0]/AbstractEnvironment: Reset context to
file:/D:/Programmi/jakarta-tomcat/webapps/gportal/
HttpProcessor[8080][0]/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:793)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:715)
	at
org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.
java:232)
	at
org.apache.cocoon.components.source.SitemapSource.<init>(SitemapSource.j
ava:150)
	at
org.apache.cocoon.components.source.CocoonSourceFactory.getSource(Cocoon
SourceFactory.java:54)
	at
org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHa
ndlerImpl.java:131)
	at
org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnviro
nment.java:275)
	at
org.apache.cocoon.sitemap.ContentAggregator.setup(ContentAggregator.java
:256)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipelin
e(AbstractEventPipeline.java:146)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching
EventPipeline.java:243)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C
achingEventPipeline.java:103)
	at
org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.
java:238)
	at
org.apache.cocoon.components.source.SitemapSource.<init>(SitemapSource.j
ava:150)
	at
org.apache.cocoon.components.source.CocoonSourceFactory.getSource(Cocoon
SourceFactory.java:54)
	at
org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHa
ndlerImpl.java:131)
	at
org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnviro
nment.java:275)
	at
org.apache.cocoon.sitemap.ContentAggregator.setup(ContentAggregator.java
:256)
	at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipelin
e(AbstractEventPipeline.java:146)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching
EventPipeline.java:243)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C
achingEventPipeline.java:103)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:282)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN4000EE(sitemap_xmap.jav
a:1151)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:789)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:699)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:215)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:236
6)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1005)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1098)
	at java.lang.Thread.run(Thread.java:484)
INFO    (2001-09-25) 15:04.51:128   [root    ] (/gportal/summary)
HttpProcessor[8080][0]/CocoonServlet: 'summary' Processed by Apache
Cocoon 2.0rc1 in 80 milliseconds.

So, what's up?

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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