Hi,
I've just installed Cocoon 2.0.2 on Tomcat 4.0.1, and it works perfectly :).
But I've encountered a problem using the scratchpad's
SourceWritingTransformer.
I used to use revision 1.6 of the old FileWritingTransformer.
I've just changed "xfwt" into "source" and tested it, and I've received the
following error :
action : none
result : failed
error message : "could not get a ContentHandler and failed to cancel"
Here are the 2 exceptions of the sitemap.log :
WARN (2002-03-26) 17:40.48:760
[sitemap.transformer.tofile](/myproject/request)
HttpProcessor[8080][0]/SourceWritingTransformer: failed, could not get a
ContentHandler
org.apache.cocoon.ProcessingException: Cannot get 'xml' serializer
at
org.apache.cocoon.components.source.AbstractStreamWriteableSource.getContent
Handler(AbstractStreamWriteableSource.java:168)
at
org.apache.cocoon.transformation.SourceWritingTransformer.startElement(Sourc
eWritingTransformer.java:293)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j
ava:858)
[...]
WARN (2002-03-26) 17:40.48:810
[sitemap.transformer.tofile](/myproject/request)
HttpProcessor[8080][0]/SourceWritingTransformer: failed to cancel:
file:/D:/path/to/myfile.xml
java.lang.IllegalArgumentException: The handler is not associated to this
source
at
org.apache.cocoon.components.source.AbstractStreamWriteableSource.cancel(Abs
tractStreamWriteableSource.java:137)
at
org.apache.cocoon.transformation.SourceWritingTransformer.startElement(Sourc
eWritingTransformer.java:299)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.j
ava:858)
[...]
Does anyone know what mistake I've made ?
Thanks in advance,
Matthieu
---------------------------------------------------------------------
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]>