Undo everything you've done to JRun's configuration, including -D args.

Put the Xalan and Xerces jars in the WEB-INF/lib of your Web application.

Everything should be fine.

Scott Stirling

-----Original Message-----
From: Clemens Marschner
To: JRun-Talk
Sent: 9/3/2001 1:19 PM
Subject: Help! XML and JRun

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.Docum
entBuilderFactoryImpl 
 
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.Tran
sformerFactoryImpl  
 
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFac
toryImpl" 

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:52
8)
        at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEac
hjava:432)
        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:193)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2251)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2134)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1246)
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:30
70)
        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

Reply via email to