cziegeler 02/02/11 04:15:11 Modified: src/java/org/apache/cocoon/components/source SitemapSource.java Log: Fixed another issue with the request lifecycle component Revision Changes Path 1.7 +10 -3 xml-cocoon2/src/java/org/apache/cocoon/components/source/SitemapSource.java Index: SitemapSource.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/source/SitemapSource.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- SitemapSource.java 4 Feb 2002 12:31:09 -0000 1.6 +++ SitemapSource.java 11 Feb 2002 12:15:11 -0000 1.7 @@ -61,6 +61,7 @@ import org.apache.cocoon.ProcessingException; import org.apache.cocoon.Processor; import org.apache.cocoon.caching.PipelineCacheKey; +import org.apache.cocoon.components.CocoonComponentManager; import org.apache.cocoon.components.pipeline.CacheableEventPipeline; import org.apache.cocoon.components.pipeline.EventPipeline; import org.apache.cocoon.components.pipeline.StreamPipeline; @@ -92,7 +93,7 @@ * Description of a source which is defined by a pipeline. * * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> - * @version CVS $Id: SitemapSource.java,v 1.6 2002/02/04 12:31:09 cziegeler Exp $ + * @version CVS $Id: SitemapSource.java,v 1.7 2002/02/11 12:15:11 cziegeler Exp $ */ public final class SitemapSource @@ -341,8 +342,14 @@ if (this.redirectSource != null) { this.redirectSource.toSAX(consumer); } else { - ((XMLProducer)eventPipeline).setConsumer(consumer); - eventPipeline.process(this.environment); + try { + CocoonComponentManager.enterEnvironment(this.environment, + this.environment.getObjectModel()); + ((XMLProducer)eventPipeline).setConsumer(consumer); + eventPipeline.process(this.environment); + } finally { + CocoonComponentManager.leaveEnvironment(); + } } } catch (ComponentException cme) { throw new ProcessingException("Could not lookup pipeline components", cme);
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]