logo       

Ant Problem with XMLC: msg#00047

java.enhydra.xmlc

Subject: Ant Problem with XMLC

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:

 

...

<taskdef name="xmlc" classname="com.lutris.ant.taskdefs.Xmlc"/>

...

<target name="xmlc" depends="prepare">

             <xmlc srcdir="${html.src.dir}"

                    sourceout="${classes.dir}"

                    packagename="example.presentation"

                    includes="**/*.html"

                    options="${html.src.dir}/options.xmlc"                   

                    compile="true"/>

       </target>

 

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