|
Hello cocoon world. I'm using the 2.19 version of Cocoon. I'm developing some CFROM using the example included in the framework. I'm using the example "samples/blocks/forms/form2simpleXML.flow" as starting point. The example works fine with a binding file , but if I substitute the file with a cocoon resource as follow: <map:match pattern="form2simpleXML.flow"> <map:call function="handleForm"> <map:parameter name="function" value="form2simpleXML"/> <map:parameter name="definitionURI" value="forms/form2_model.xml"/> <!-- <map:parameter name="documentURI" value="forms/form2_simple_data.xml"/> --> <map:parameter name="documentURI" value="cocoon:/forms/form2_simple_data.xml"/> </map:call> </map:match> <map:match pattern="forms/form2_simple_data.xml"> <map:generate src=""/> <map:serialize type="xml" /> </map:match> Cocoon generates an error : org.mozilla._javascript_.EvaluatorException: "resource://org/apache/cocoon/forms/flow/_javascript_/Form.js", line 285: The choice of Java method org.apache.cocoon.components.source.SourceUtil.toSAX matching _javascript_ argument types (org.apache.cocoon.components.source.impl.SitemapSource,org.apache.cocoon.forms.util.XMLAdapter) is ambiguous; candidate methods are: void toSAX(org.apache.excalibur.source.Source,org.xml.sax.ContentHandler), void toSAX(org.apache.excalibur.xml.sax.XMLizable,org.xml.sax.ContentHandler) Looking in the web I've found the same bug of the current development version of Cocoon. The article is below: http://issues.apache.org/jira/browse/COCOON-1906 I've patched my verson of cocoon but it does not solve the problem..... Why?? thanks 4 the attention manuel ottaviano |
