Title: Message
Hi David
 
I think JDK1.4 comes with crimson and xalan so you might want to try removing xerces,jar and xalan.jar from your classpath and trying again. Is this from an application or a servlet or EJB?

James
----- Original Message -----
Sent: Tuesday, October 16, 2001 10:57 PM
Subject: [dom4j-user] Exception getting SAX parser

I know this is in the FAQ, but I've tried to do everything to fix it and I'm still getting this problem.
 
Here's my classpath:
 
CLASSPATH=.;c:\local\jdk1.4.0\lib\tools.jar;c:\local\classes;c:\work\andrew\build\classes;c:\local\junit3.7\junit.jar;c:\local\xerces-1_4_3\xerces.jar;c:\local\xalan-j_2_2_D10\bin\xalan.jar;c:\local\dom4j-1.0\dom4j.jar;c:\local\xalan-j_2_2_D10\xalansamples.jar
 
Here's the exception:
 
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:528)
        at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:411)
        at org.dom4j.io.SAXReader.read(SAXReader.java:277)
        at org.dom4j.io.SAXReader.read(SAXReader.java:201)
        at org.dom4j.io.SAXReader.read(SAXReader.java:190)
 
Any ideas?
 
I am using JDK 1.4.0 beta 2.
 
Thanks.

Reply via email to