Hi Ben

This sounds like an old xerces.jar. Try using a recent Xerces JAR, which
comes integrated with the latest JAXP1.1 release, then everything should
work properly. It seems like you've maybe a SAX 1.0 version of xerces, or a
JAXP1.0 version or something like that.

James
----- Original Message -----
From: "Ben Morris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 5:49 PM
Subject: [dom4j-user] Not loading correct Reader


I am pretty new at this Dom4J stuff so if anybody could please help me
with my problem, it would be great.

Here's the problem, every time I try to instantiate a new
org.dom4j.io.SAXReader, I get an error that says that Aelfred is going
to be used instead.  I turned on verbose mode and the following trace is
printed out:

Warning: Caught exception attempting to use JAXP to load a SAX XMLReader

Warning: Exception was: java.lang.LinkageError: loader constraints
violated when linking org/xml/sax/XMLReader class
Warning: I will print the stack trace then carry on using the default
SAX parser
java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/XMLReader class
at org.dom4j.io.JAXPHelper.createXMLReader(JAXPHelper.java:38)
at
org.dom4j.io.SAXHelper.createXMLReaderViaJAXP(SAXHelper.java:80)
at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:49)
at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:524)
at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:407)

My classpath is as follows (excluding any of our jars):
xerces.jar
xalan.jar
dom4j.jar

Does anybody have any ideas?  Co-workers seem to be using the same path
but they never get this error.

Thanks in advance!
Ben Morris

_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user



_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to