Hi Merico,
I think you did the right fix. I guess the problem happens because the
saxon.jar contains API classes related to DOM Level 2. The xml-apis.jar
contains API for DOM Level 3. Cocoon 2.1.8 was shipped with xerces 2.7.1
and xalan 2.7.0. Both needs DOM Level 3. Hence if in the classpath the
saxon.jar is first, we get DOM Level 2 related classes and you got the
problem as you showed up.
I think another way to fx this isssue is to copy all the content of
"cocoon/lib/endorsed" into "tomcat/commons/endorsed".
Hope this explain the problem and another way to fix it.
BTW, you should give a try to xalan 2.7.0 it is pretty fast. In GT2005,
Jack Ivers and Vadim Gritsenko did a nice presentation[1] showing XSLT
transformers benchmarks in cocoon and seems like xalan 2.7.0 is doing
pretty well! ;-)
For more info see:
http://cocoongt.hippo12.castaserver.com/cocoongt/jack-ivers-XSLT-Performance.pdf
Best Regards,
Antonio Gallardo.
Merico Raffaele wrote:
Ciao Antonio, dear Cocoon-Devs
Make sure you are using the right xml-apis.jar.
I am using that one distributed with cocoon-2.1.8:
WEB-INF/lib/xml-apis-1.3.02.jar
Please note the solution (so I hope):
To find out which xml-apis lib is installed I did a find in the ./webapps:
$ find . -name "xml-apis*" -print
./V2D/WEB-INF/lib/xml-apis-1.3.02.jar
./V2I63/WEB-INF/lib/xml-apis.jar
./V2I64/WEB-INF/lib/xml-apis.jar
./V2D contains the cocoon webapp. The others are NOT cocoon webapps using
may be an older xml-apis.jar. I removed this webapps temporarily but the
problem did not disappear.
Closed to the desperation I remembered myself that the saxon.jar can cause
some problems if it's not at the end of the "lib-list". So I renamed it to
zsaxon.jar. And ... uhhh the problem disappeared. It's a little bit hokus
pokus, but it seems to work. Since I do not know the internals it would be
very reassuringly if somebody of the Cocoon-Devs could give us an short
explanation respectively a confirmation that this is OK so.
Thanks in advance ... Raffaele
Dear community
I have installed cocoon-2.1.8 under tomcat-5.5.9 and I got the following
error:
java.lang.IllegalArgumentException: Unknown type of result: class
javax.xml.transform.dom.DOMResult
Cocoon stacktrace[hide]
Error calling flowscript function showForm
resource://org/apache/cocoon/forms/flow/javascript/Form.js - 47:-1
file:/C:/Programme/Tomcat/Tomcat-
5.5.9/webapps/V2D/appl/util/js/CformUtil.js
- 6:-1
file:/C:/Programme/Tomcat/Tomcat-5.5.9/webapps/V2D/appl/sitemap.xmap -
355:32 <map:call>
file:/C:/Programme/Tomcat/Tomcat-5.5.9/webapps/V2D/sitemap.xmap - 896:66
<map:mount>
What can I do?
Thanks in advance ... Raffaele
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]