Oops.. My bad... But I still have an aggregation problem with stream type of generators:
<map:match pattern="request"> <map:generate type="stream"/> <map:serialize type="xml"/> </map:match> <map:match pattern="request/messages"> <map:aggregate element="Response"> <map:part src="cocoon:/request"/> </map:aggregate> <map:serialize type="xml"/> </map:match> Exception is: Exception in StreamGenerator.generate(): java.lang.ClassCastException: org.apache.cocoon.environment.wrapper.RequestWrapper Maybe it doesnt inherit the environment from request/messages ? Ideas? Alex. ----- Original Message ----- From: "Morrison, John" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 02, 2001 11:28 AM Subject: RE: Aggregation Error > > > > -----Original Message----- > > From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, 02 October 2001 4:20 pm > > To: [EMAIL PROTECTED] > > Subject: Aggregation Error > > > > > > Hi everyone, > > > > Maybe I do not get the idea of pipelines and the aggregation > > stuff, but this > > what happens: > > > > My sitemap has: > > > > <map:pipeline> > > .... > > <map:match pattern="account"> > > <map:generate src="xsp/account.xsp" type="serverpages"/> > > <map:serialize type="xml"/> > > </map:match> > > <map:match pattern="request/messages"> > > <map:aggregate element="Response"> > > <map:part src="cocoon:account"/> > > try > > <map:part src="cocoon:/account"/> > > > </map:aggregate> > > <map:serialize type="xml"/> > > </map:match> > > .... > > </map:pipeline> > > > > When I send http://loalhost:8080/mysite/request/messages > > cocoon goes wild by > > giving me Exception: > > > > Could not get sitemap source http://localhost:8080/mysite/account: > > java.lang.NullPointerException, > > > > but http://localhost:8080/mysite/account does work fine. Any ideas? > > > > Thanks, > > Alexander Smirnoff > > > > > > --------------------------------------------------------------------- > > 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: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > > ======================================================================= > Information in this email and any attachments are confidential, and may > not be copied or used by anyone other than the addressee, nor disclosed > to any third party without our permission. There is no intention to > create any legally binding contract or other commitment through the use > of this email. > > Experian Limited (registration number 653331). > Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>