cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Aston <jeremyas...@yahoo.co.uk>
Subject SourceWriterTransformer problems
Date Mon, 20 May 2002 11:04:47 GMT

Hi,

I've been racking my brain all weekend over a problem with SourceWriterTransformer (more likely
my use of it actually).  On C2.0.2, JDK1.3 everything works fine.  I have now moved to 2.1-dev,
JDK1.4 and my JDK1.4 compiled excalibur.  SourceWriterTransformer now no longer works.  It
does do the source:insert stuff as per the Sunspot stuff but not source:write.  It now throws
various exceptions on the name of the file that it should write to as specified in the src
attribute of the source:write element.

I have tried different combinations in the sitemap including a generator and a serializer
around the transformer but it makes no difference

My source XML file is:

<?xml version="1.0"?>
<page xmlns:source="http://apache.org/cocoon/source/1.0">
 <source:write src="context://jez/jez.xml">
  <page>
   <title>testwrite</title>
  </page>
 </source:write>
</page>


The sitemap is (currently but has been different ;-) )

 <map:match pattern="testwrite">
  <map:transform type="tofile">
   <map:parameter name="serializer" value="xml"/>
  </map:transform>
 </map:match>


I've tried it with the jez/jez.xml file created and not created but to no avail.  This is
strange because everything was working, creating files if they did not exist  etc so I am
getting just a little stumped.  I have also tried different protocols (file://, context://)
etc but they all just vary the exception thrown with the same basic message that the file
cannot be found.

If the file already exists (as zero length) then the error is:

WARN    (2002-05-20) 11:10.56:416   [sitemap.transformer.tofile](/xcpt/testwrite) HttpProcessor[8080][0]/SourceWritingTransformer:
failed, The src attribute doesn't resolve to a writeable source
java.lang.ClassCastException: org.apache.excalibur.source.impl.URLSource
 at org.apache.cocoon.webapps.session.transformation.SourceWritingTransformer.startTransformingElement(SourceWritingTransformer.java:390)
 at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326)
 at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:445)
 at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:832)
 at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:568)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:808)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
 at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
 at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)
 at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
 at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
 at org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:92)
 at org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:75)
 at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:456)
 at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:145)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:536)
WARN    (2002-05-20) 11:10.56:426   [sitemap.transformer.tofile](/xcpt/testwrite) HttpProcessor[8080][0]/SourceWritingTransformer:
failed to cancel: jndi:/localhost/xcpt/jez/jez.xml
java.lang.NullPointerException
 at org.apache.cocoon.webapps.session.transformation.SourceWritingTransformer.startTransformingElement(SourceWritingTransformer.java:426)
 at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326)
 at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:445)
 at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:832)
 at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:568)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:808)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
 at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)
 at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157)
 at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
 at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
 at org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:92)
 at org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:75)
 at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:456)
 at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:145)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:536)
=================================================================================================================

If the file does not already exist then the error is:

WARN    (2002-05-20) 11:19.13:881   [sitemap.transformer.tofile](/xcpt/testwrite) HttpProcessor[8080][0]/SourceWritingTransformer:
failed, The src attribute could not be resolved
java.net.MalformedURLException: jez/jez.xml could not be found. (possible context problem)
 at org.apache.cocoon.components.source.impl.ContextSourceFactory.getSource(ContextSourceFactory.java:120)
 at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:266)
 at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:277)
 at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:430)
 at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:420)
 at org.apache.cocoon.webapps.session.transformation.SourceWritingTransformer.startTransformingElement(SourceWritingTransformer.java:386)
 at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326)
 at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:126)
 at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219)
 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:536)
WARN    (2002-05-20) 11:19.13:881   [sitemap.transformer.tofile](/xcpt/testwrite) HttpProcessor[8080][0]/SourceWritingTransformer:
failed to cancel: 
java.lang.NullPointerException
 at org.apache.cocoon.webapps.session.transformation.SourceWritingTransformer.startTransformingElement(SourceWritingTransformer.java:426)
 at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:326)
 at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:126)
 at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:102)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219)
 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:591)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:536)
=================================================================================================================

A debug of the SystemID being returned by the resolver shows that it is looking for jndi:/localhost/xcpt/jez/jez.xml
- note the lack of the 8080 port.  I'm not sure if this is significant but something is funny
here.

I am sure I must be doing something stupid here but a good night's sleep has not brought the
expected spark of realisation and the associated Homer Simpson "doh!".  Does anyone have a
very recent example of a source:write that will show me what I am doing wrong.

I have also checked with the scratchpad editor:  Calling http://localhost:8080/cocoon/mount/editor/test/1
 gives me:
org.apache.cocoon.ProcessingException: Could not read resource file:/C:/java/tomcat4.0.3_le/webapps/cocoon/mount/editor/tests/test1.xml:
java.util.EmptyStackException 
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:156) 
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)

at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)

at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)

at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:128)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)

at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:128)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)

at org.apache.cocoon.Cocoon.process(Cocoon.java:591) 
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) 
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) 
at java.lang.Thread.run(Thread.java:536) 
Caused by: java.util.EmptyStackException 
at java.util.Stack.peek(Stack.java:79) 
at java.util.Stack.pop(Stack.java:61) 
at org.apache.cocoon.transformation.AbstractSAXTransformer.removeRecorder(AbstractSAXTransformer.java:416)

at org.apache.cocoon.webapps.session.transformation.SourceWritingTransformer.endTransformingElement(SourceWritingTransformer.java:533)

at org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:351)

at org.apache.cocoon.transformation.LogTransformer.endElement(LogTransformer.java:230) 
at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124) 
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:568) 
at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:853)

at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:643) 
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:3006)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:930) 
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)

at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)

at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)

at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) 
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157) 
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269) 
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222) 
at org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:92) 
at org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:75) 
at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:456) 
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:145) 
... 62 more 
java.util.EmptyStackException 
at java.util.Stack.peek(Stack.java:79) 
at java.util.Stack.pop(Stack.java:61) 
at org.apache.cocoon.transformation.AbstractSAXTransformer.removeRecorder(AbstractSAXTransformer.java:416)

at org.apache.cocoon.webapps.session.transformation.SourceWritingTransformer.endTransformingElement(SourceWritingTransformer.java:533)

at org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:351)

at org.apache.cocoon.transformation.LogTransformer.endElement(LogTransformer.java:230) 
at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124) 
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:568) 
at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:853)

at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:643) 
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:3006)

at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:930) 
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)

at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525)

at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581)

at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) 
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157) 
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269) 
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222) 
at org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:92) 
at org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:75) 
at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:456) 
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:145) 
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)

at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)

at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)

at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:128)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)

at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:128)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)

at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)

at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)

at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:142)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:318)

at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)

at org.apache.cocoon.Cocoon.process(Cocoon.java:591) 
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1002) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) 
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107) 
at java.lang.Thread.run(Thread.java:536) 

================================================================================================================

FYI - this is after changing the editor and test sitemaps to the correct package name for
SourceWritingTransformer ;-)  This is also with the original Excalibur jar and not my JDK1.4
version.  Sorry for the mass of exception stack traces!

TIA

Jez



---------------------------------
Do You Yahoo!?
Get personalised at My Yahoo!.
Mime
View raw message