Remove the Xerces that comes with Ant. It's in ANT_HOME/lib/xmlAPI.jar and xercesImpl.jar. The names may not be exactly that.
David
On Wednesday, Jan 22, 2003, at 00:29 Asia/Shanghai, Typrowicz, Jim wrote:
I can run xmlc.bat standalone with no problems, however, when attempting to use ANT to do the same thing I get the following error:
java.lang.reflect.InvocationTargetException: org.apache.xerces.util.ObjectFactory$ConfigurationError: Provider org.apache.html.dom.H
TMLAnchorElementImpl could not be instantiated: java.lang.InstantiationException: org.apache.html.dom.HTMLAnchorElementImpl
at org.apache.xerces.util.ObjectFactory.newInstance(Unknown Source)
at org.apache.html.dom.HTMLDocumentImpl.populateElementType(Unknown Source)
at org.apache.html.dom.HTMLDocumentImpl.populateElementTypes(Unknown Source)
at org.apache.html.dom.HTMLDocumentImpl.<init>(Unknown Source)
In my build.xml I have:
...
"/>
...
">
"
sourceout"
packagename"
includes"
options
compile"/>
>
My classpath is:
CLASSPATH=c:/Enhydra5.0/lib/xmlc.jar;c:/Enhydra5.0/lib/xerces.jar;c:/Enhydra5.0/lib/gnu-regexp.jar;c:/Enhydra5.0/lib/jtidy.jar;c:/Enhydra5.0/lib/core.jar;c:/Enhydra5.0/lib/xmlcSupport.jar
I'm using Java JDK1.3.1_01
Any idea on what could be wrong?
Thank you,
Jim
|