ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Burke <mbu...@bestweb.net>
Subject Re: taskdef class cannot be found
Date Mon, 02 Sep 2002 19:45:11 GMT
Erik Hatcher wrote:

> Is the JAR containing com.wrox.ant.ExtractTldTask in your ANT_HOME/lib 
> directory or your system classpath?  If not, then use the <taskdef> 
> options to define a classpath where it lives (including any 
> dependencies it might have also!).
>
>     Erik
>
>
> Michael Burke wrote:
>
>> I don't understand why I'm getting this error message. The class is 
>> in com.wrox.ant.
>> Relevant part of build.xml:
>>
>>> <!-- Define the extractTld task -->
>>>   <taskdef name="extractTld" classname="com.wrox.ant.ExtractTldTask"/>
>>
>>
>>
>>> ant error message:
>>> BUILD FAILED
>>> file:/home/mburke/5512/5512/build.xml:9: taskdef class 
>>> com.wrox.ant.ExtractTldTask cannot be found
>>>     at 
>>> org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:236)
>>>     at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162)
>>>     at 
>>> org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.finished(ProjectHelperImpl.java:821)

>>>
>>>     at 
>>> org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.endElement(ProjectHelperImpl.java:300)

>>>
>>>     at 
>>> org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:572)

>>>
>>>     at 
>>> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:218)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:594)

>>>
>>>     at 
>>> org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:777)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)

>>>
>>>     at 
>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) 
>>>
>>>     at 
>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) 
>>>
>>>     at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>>>     at 
>>> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)

>>>
>>>     at 
>>> org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)

>>>
>>>     at 
>>> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117) 
>>>
>>>     at org.apache.tools.ant.Main.runBuild(Main.java:597)
>>>     at org.apache.tools.ant.Main.start(Main.java:196)
>>>     at org.apache.tools.ant.Main.main(Main.java:235)
>>> --- Nested Exception ---
>>> java.lang.ClassNotFoundException: com.wrox.ant.ExtractTldTask
>>>     at 
>>> org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1073)

>>>
>>>     at 
>>> org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1034)
>>>     at 
>>> org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:923)
>>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>>>     at 
>>> org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:230)
>>>     at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:162)
>>>     at 
>>> org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.finished(ProjectHelperImpl.java:821)

>>>
>>>     at 
>>> org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.endElement(ProjectHelperImpl.java:300)

>>>
>>>     at 
>>> org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:572)

>>>
>>>     at 
>>> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:218)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:594)

>>>
>>>     at 
>>> org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:777)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)

>>>
>>>     at 
>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)

>>>
>>>     at 
>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524) 
>>>
>>>     at 
>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580) 
>>>
>>>     at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>>>     at 
>>> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)

>>>
>>>     at 
>>> org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)

>>>
>>>     at 
>>> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117) 
>>>
>>>     at org.apache.tools.ant.Main.runBuild(Main.java:597)
>>>     at org.apache.tools.ant.Main.start(Main.java:196)
>>>     at org.apache.tools.ant.Main.main(Main.java:235)
>>
>>
>>
>>
>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:ant-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <mailto:ant-user-help@jakarta.apache.org>
>>
>>
>>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
>
>
ExtractTldTask isn't in a jar file it's a class file in com.wrox.ant. I 
added a pathelement to the taskdef and got the same error message

> <taskdef name="extractTld" classname="com.wrox.ant.ExtractTldTask">
>      <classpath>
>         <pathelement location="com.wrox.ant"/>
>      </classpath>
>    </taskdef>





--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message