Article:
 |
|
XML Document Validation with an XML Schema
|
| Subject: |
|
Exceptions when run |
| Date: |
|
2005-08-22 03:29:26 |
| From: |
|
khylo
|
|
|
|
HI,
I have copies the program verbatim, and when I try to run it I get the following exceptions.
I have added the xercesImpl.jar and xml-apis.jar to my classpath, but still no success.
Any idea?
Cheers,
Keith
Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setAttribute(Ljava/lang/String;Ljava/lang/Object;)V
at com.aol.shopping.pinpoint.frontend.rearch.JAXPValidator.validateSchema(JAXPValidator.java:63)
at com.aol.shopping.pinpoint.frontend.rearch.JAXPValidator.validateSchema(JAXPValidator.java:52)
at com.aol.shopping.pinpoint.frontend.rearch.JAXPValidator.main(JAXPValidator.java:28)
|
Showing messages 1 through 1 of 1.
-
Exceptions when run
2005-08-22 03:48:37
khylo
[View]
Apologies,
I have found the problem.. I was building this program as part of a larger project, and there was an older versions of xerces in the classpath. Once I removed this it fixed my problem.
Cheers,
Keith