Subject: [xsl] java reports error when invoking stylesheet From: "Dave Gomboc" <dave@xxxxxxxxxxxxxx> Date: Sat, 2 Jun 2001 23:03:32 -0600 |
I'm trying to execute a stylesheet from the command line on AIX 4.3 using IBM's JDK 1.3.0. # java com.icl.saxon.StyleSheet blah.xml blah.xsl > out.xml I'm getting the error: EXception in thread "main" java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found at com.icl.saxon.TransformerFactoryImpl.getSourceParser(TransformerFactoryI mpl.java:484) at com.icl.saxon.StyleSheet.doMain(StyleSheet.java:280) at com.icl.saxon.StyleSheet.main(StyleSheet.java:63) Line 484 of the source code of TransformerFactoryImpl.java is return SaxParserFactory.newInstance().newSAXParser().getXMLReader(); I went and downloaded Xalan and tried it instead, with # java org.apache.xalan.xslt.Process -IN blah.xml -STYLE blah.xsl -OUT out.xml I'm getting the error XSLT Error (java.lang.NoSuchMethodError): javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found which is quite suspiciously similar to what I got with Saxon. Any ideas? I don't know where that funny 'L' is coming from. CLASSPATH=/usr/java130/jre/lib/rt.jar:[blah]/sax2.jar:[blah]/jaxp.jar:[b lah]/saxon.jar:[blah]/xalan.jar:[blah]/xerces.jar:[blah]/classes111.zip rt.jar is part of jdk 1.3.0 from ibm sax2.jar is the sax2-r2pre from megginson jaxp.jar is jaxp-1.1 from sun saxon.jar is saxon-6.3 from kay xalan.jar is xalan-2.1 from apache xerces.jar is xerces-1.4 that ships with xalan from apache classes111.zip is oracle's 8.1.6 jdbc driver Thanks for any help you can provide, Dave XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] RE: XSL and White Space h, Clapham, Paul | Thread | RE: [xsl] java reports error when i, Michael Kay |
[xsl] RE: XSL and White Space help , Dimitre Novatchev | Date | Re: [xsl] output encoding="iso-8859, Michael Beddow |
Month |