To be sure, you should check the version of Xerces that you get
at runtime: org.apache.xerces.impl - if your version is very old, it may
have another class. Print it out and you'll know what version you have,
which might make it easier to find where the library *is*. You can also,
via the ClassLoader, find out the exact path of the file the class came
from.
I've run into class path/loader issues frequently -- strangely,
never with JUnit.
Chris
PS. Oh, of course if you have both the old and new versions of Xerces in
your path, the 'Version' class might report the new version and the
parser still be the old -- if you use the ClassLoader to track things
down you can be sure of where your parser comes from.
-----Original Message-----
From: Allen Brookes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 11:30
To: '[EMAIL PROTECTED]'
Subject: RE: XmlReader
I'm guessing that the junit ClassLoader is the problem since other code
using the same parser code works using the same classpath outside of
junit. I tried adding the parser packages to junits excluded.properties
but this doesn't seem to help.
Any ideas would be appreciated.
Thanks,
Allen
-----Original Message-----
From: Adrian Sutton [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 1:46 PM
To: [EMAIL PROTECTED]
Subject: RE: XmlReader
This is typically caused by ClassLoader issues which JUnit causes a lot
of. I'd probably ask the Junit folks (search the FAQ first) as they've
probably seen this quite often.
Regards,
Adrian Sutton.
-----Original Message-----
From: Allen Brookes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16 March 2004 3:49 AM
To: '[EMAIL PROTECTED]'
Subject: XmlReader
I'm getting the following error when trying to run a test using junit.
unit.framework.AssertionFailedError: SAX2 driver class
org.apache.xerces.parsers.SAXParser does not implement XMLReader
What does this mean? Isn't XmlReader an interface that SAX2 must
implement?
Thanks,
Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]