[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

java reports error when invoking stylesheet

Subject: java reports error when invoking stylesheet
From: "Dave Gomboc" <dave@xxxxxxxxxxxxxx>
Date: Sat, 2 Jun 2001 23:03:32 -0600
java reports
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.