This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] changed paths in java 1.4.2 when using xerces with saxon
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Nilsson, David F" <dfnilsson at switch dot com>, <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 6 Oct 2004 22:42:52 -0700
- Subject: Re: [docbook-apps] changed paths in java 1.4.2 when using xerces with saxon
- References: <03F517C72D42284EBB48800AEF3E7D1DD246D1@exchptc1.switch.com>
Well, I wonder what is going on here. I use Java 1.4.2 and the -D options
you provided don't work for me. I get this error:
"javax.xml.parsers.FactoryConfigurationError: Provider
com.sun.org.apache.xerces.
internal.jaxp.SAXParserFactoryImpl not found"
When I use the values from my book, it works without error.
I don't think the difference has to do with the version of Java, but with
the version of xerces being used. I use Xerces 2.6.2 from apache.org, and
the listing of classes in its jar file includes the
org/apache/xerces/jaxp/SAXParserFactoryImpl.class. The version that works
for you seems to be an "internal" version that comes from Sun, but I don't
have that version. Do you know where your Xerces came from, and where it is
in your CLASSPATH?
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Nilsson, David F" <dfnilsson@switch.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, October 06, 2004 8:58 AM
Subject: [docbook-apps] changed paths in java 1.4.2 when using xerces with
saxon
> Someone may have pointed this out before, but if not, this may be useful
to
> Saxon users who want to use the Xerces parser and who are using Java
version
> 1.4.2:
>
> If you are using Java version 1.4.2, the -D options (for the Java command
> line) given in Bob Stayton's excellent book, "DocBook XSL: The Complete
> Guide", have changed.
>
> The options listed in the section "Using the Xerces parser with Saxon"
work
> for Java 1.4.0, but Sun changed the naming conventions at some point, and
> this affects 1.4.2.
>
> These are the options that worked for me with Java 1.4.2:
>
>
> -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.inter
na
> l.jaxp.DocumentBuilderFactoryImpl
>
>
> -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.ja
xp
> .SAXParserFactoryImpl
>
> And these are the options that are listed in Bob's book and that worked
for
> me with Java 1.4.0:
>
>
> -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Document
Bu
> ilderFactoryImpl
>
>
> -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFacto
ry
> Impl
>
> Hope this is useful to someone.
>
> Dave Nilsson
>
>
>
>