Hi,
I try to convert an XML document to HTML with the Xalan XSLT processor and Xerces
parser.
The problem: It still seems that old JRUN JAXP/DOM/SAX classes make problems. I have
to get this done so I need your HELP!
I tried to use the JAXP "plugability layer" by setting these java command line
arguments for my default server:
"-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"
With this I've overcome a lot of problems that were brought up by old SAX
implementations and so forth.
However I still get a "NoSuchMethodError" exception when XPath tries to access a DOM
node:
java.lang.NoSuchMethodError
at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326)
at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471)
at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEachjava:432)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2251)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2134)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1246)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3070)
at java.lang.Thread.run(Thread.java:484)
I use JRun 3.0 and the most recent Xalan which comes with Xerces.
When I use it from the console, all works fine.
What can I do??
Regards,
Clemens Marschner
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists