I use Apache Cocoon 2.0b2 on Tomcat 3.2.3, Linux.

sitemap contains:
   <map:match pattern="info">
     <map:generate src="info.xml"/>
     <map:transform type="xinclude"/>
     <map:transform src="info.xsl"/>
     <map:serialize/>
   </map:match>

info.xml contains:
<?xml version="1.0"?>

<page>
<xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude";
href="a.xml" parse="xml"/>
</page>

First time accessed "info" outputs fine results.
Next time, Cocoon2 returns 404 code; cocoon.log contains

org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.:java.lang.NullPointerException
        at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:189)
        
and plenty lines of stack trace.

I don't want to refuse from caching, because result of this xinclude
is going to be compiled as XSP.

what should I do : use map:aggregate instead or fix this somehow ?

/Alexander


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

Reply via email to