This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Problem executing Xalan or Saxon...
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: Problem executing Xalan or Saxon...
- From: Dan York <dyork at e-smith dot com>
- Date: Thu, 21 Jun 2001 16:01:43 -0400
- Organization: e-smith, Inc.
Folks,
My laptop died this morning, taking with it my XSL processing environment!
It's going in for repair, but in the meantime, I'm getting my (RH Linux 6.2)
desktop at work set up to work with XML/XSL. I installed everything[1],
but now with either Saxon or Xalan, I get an error like this (for Saxon):
Exception in thread "main" java.lang.NoClassDefFoundError:
org/icl/saxon/Stylesheet
with Xalan it is:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xalan/xslt/Process
Any suggestions would be greatly appreciated. I think I've duplicated
the steps I went through on my laptop... and it's frustrating that it
doesn't work.
Thanks,
Dan
[1] I installed JRE 1.3.1, Xalan 2.1.0, Saxon 6.2.2, and Norm's XSL
stylesheets 1.40. All of these were downloaded *today* from their
original distribution web sites.
The commands I used were (split into multiple lines):
$ java com.icl.saxon.Stylesheet test.xml
/usr/share/sgml/docbook-xsl-1.40/html/docbook.xsl
$ java org.apache.xalan.xslt.Process -in test.xml -out test.html -xsl
/usr/share/sgml/docbook-xsl-1.40/html/docbook.xsl
My PATH variable includes the java executable. My CLASSPATH is set to:
.:/usr/share/xalan/xalan.jar:/usr/share/xalan/xerces.jar:/usr/share/xalan/samples/xalansamples.jar:/usr/share/xalan/bsf.jar:/usr/share/saxon/saxon.jar:/usr/share/saxon/saxon-fop.jar
Xalan is in /usr/share/xalan, Saxon in /usr/share/saxon. The 'test.xml'
file is a very basic DocBook XML file that processed perfectly fine with
the identical setup on my laptop.
--
Dan York, Director of Training dyork@e-smith.com
Ph: +1-613-751-4401 Mobile: +1-613-263-4312 Fax: +1-613-564-7739
e-smith, inc. 150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/ open source, open mind