We help IT Professionals succeed at work.
Get Started

Exception received when I execute my ant script

1,185 Views
Last Modified: 2013-11-10
I am receiving the below exception when the below line is executed in a ant script,
  <taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask"/>

Exception message:
file:/home/automan/hudson/workspace/ContentUnix/executeTasks.xml:585: taskdef class ise.antelope.tasks.StringUtilTask cannot be found
   at org.apache.tools.ant.taskdefs.Definer.addDefinition(java.lang.ClassLoader, java.lang.String, java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.taskdefs.Definer.execute() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.finished() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.endElement(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.Augmentations) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement() (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(boolean) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(boolean) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.DTDConfiguration.parse(boolean) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.DTDConfiguration.parse(org.apache.xerces.xni.parser.XMLInputSource) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.XMLParser.parse(org.apache.xerces.xni.parser.XMLInputSource) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(org.xml.sax.InputSource) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.tools.ant.helper.ProjectHelperImpl.parse(org.apache.tools.ant.Project, java.lang.Object) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.ProjectHelper.configureProject(org.apache.tools.ant.Project, java.io.File) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.Main.main(java.lang.String[]) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
Caused by: java.lang.ClassNotFoundException: ise.antelope.tasks.StringUtilTask
   at org.apache.tools.ant.AntClassLoader.findClassInComponents(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.AntClassLoader.findClass(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.AntClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at java.lang.ClassLoader.loadClass(java.lang.String) (/lib/ssa/libgcj.so.4.0.0)
   at org.apache.tools.ant.taskdefs.Definer.addDefinition(java.lang.ClassLoader, java.lang.String, java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   ...16 more
--- Nested Exception ---
java.lang.ClassNotFoundException: ise.antelope.tasks.StringUtilTask
   at org.apache.tools.ant.AntClassLoader.findClassInComponents(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.AntClassLoader.findClass(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.AntClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at java.lang.ClassLoader.loadClass(java.lang.String) (/lib/ssa/libgcj.so.4.0.0)
   at org.apache.tools.ant.taskdefs.Definer.addDefinition(java.lang.ClassLoader, java.lang.String, java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.taskdefs.Definer.execute() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.finished() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.endElement(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.Augmentations) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement() (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(boolean) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(boolean) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.DTDConfiguration.parse(boolean) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.DTDConfiguration.parse(org.apache.xerces.xni.parser.XMLInputSource) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.XMLParser.parse(org.apache.xerces.xni.parser.XMLInputSource) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(org.xml.sax.InputSource) (/usr/lib/lib-javax-xml-parsers-2.2.1.so)
   at org.apache.tools.ant.helper.ProjectHelperImpl.parse(org.apache.tools.ant.Project, java.lang.Object) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.ProjectHelper.configureProject(org.apache.tools.ant.Project, java.io.File) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)
   at org.apache.tools.ant.Main.main(java.lang.String[]) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so)

Could someone help my what am I missing here ? Do I need to locate any jar file from my ant script ?
Comment
Watch Question
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE