logo       

Re: Ant Problem with XMLC: msg#00048

java.enhydra.xmlc

Subject: Re: Ant Problem with XMLC

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

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise