Microsoft
Software
Hardware
Network
Question : Exception received when I execute my ant script
I am receiving the below exception when the below line is executed in a ant script,
>
Exception message:
file:/home/automan/hudson/
workspace/
ContentUni
x/executeT
asks.xml:5
85: taskdef class ise.antelope.tasks.StringU
tilTask cannot be found
at org.apache.tools.ant.taskd
efs.Define
r.addDefin
ition(java
.lang.Clas
sLoader, java.lang.String, java.lang.String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.taskd
efs.Define
r.execute(
) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.helpe
r.ProjectH
elperImpl$
TaskHandle
r.finished
() (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.helpe
r.ProjectH
elperImpl$
AbstractHa
ndler.endE
lement(jav
a.lang.Str
ing) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.xerces.parsers.
AbstractSA
XParser.en
dElement(o
rg.apache.
xerces.xni
.QName, org.apache.xerces.xni.Augm
entations)
(/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.impl.XML
DocumentFr
agmentScan
nerImpl.sc
anEndEleme
nt() (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.impl.XML
DocumentFr
agmentScan
nerImpl$Fr
agmentCont
entDispatc
her.dispat
ch(boolean
) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.impl.XML
DocumentFr
agmentScan
nerImpl.sc
anDocument
(boolean) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
DTDConfigu
ration.par
se(boolean
) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
DTDConfigu
ration.par
se(org.apa
che.xerces
.xni.parse
r.XMLInput
Source) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
XMLParser.
parse(org.
apache.xer
ces.xni.pa
rser.XMLIn
putSource)
(/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
AbstractSA
XParser.pa
rse(org.xm
l.sax.Inpu
tSource) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.tools.ant.helpe
r.ProjectH
elperImpl.
parse(org.
apache.too
ls.ant.Pro
ject, java.lang.Object) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Proje
ctHelper.c
onfigurePr
oject(org.
apache.too
ls.ant.Pro
ject, java.io.File) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Main.
runBuild(j
ava.lang.C
lassLoader
) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Main.
start(java
.lang.Stri
ng[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Main.
main(java.
lang.Strin
g[]) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
Caused by: java.lang.ClassNotFoundExc
eption: ise.antelope.tasks.StringU
tilTask
at org.apache.tools.ant.AntCl
assLoader.
findClassI
nComponent
s(java.lan
g.String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.AntCl
assLoader.
findClass(
java.lang.
String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.AntCl
assLoader.
loadClass(
java.lang.
String, boolean) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at java.lang.ClassLoader.load
Class(java
.lang.Stri
ng) (/lib/ssa/libgcj.so.4.0.0)
at org.apache.tools.ant.taskd
efs.Define
r.addDefin
ition(java
.lang.Clas
sLoader, java.lang.String, java.lang.String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
...16 more
--- Nested Exception ---
java.lang.ClassNotFoundExc
eption: ise.antelope.tasks.StringU
tilTask
at org.apache.tools.ant.AntCl
assLoader.
findClassI
nComponent
s(java.lan
g.String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.AntCl
assLoader.
findClass(
java.lang.
String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.AntCl
assLoader.
loadClass(
java.lang.
String, boolean) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at java.lang.ClassLoader.load
Class(java
.lang.Stri
ng) (/lib/ssa/libgcj.so.4.0.0)
at org.apache.tools.ant.taskd
efs.Define
r.addDefin
ition(java
.lang.Clas
sLoader, java.lang.String, java.lang.String) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.taskd
efs.Define
r.execute(
) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.helpe
r.ProjectH
elperImpl$
TaskHandle
r.finished
() (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.helpe
r.ProjectH
elperImpl$
AbstractHa
ndler.endE
lement(jav
a.lang.Str
ing) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.xerces.parsers.
AbstractSA
XParser.en
dElement(o
rg.apache.
xerces.xni
.QName, org.apache.xerces.xni.Augm
entations)
(/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.impl.XML
DocumentFr
agmentScan
nerImpl.sc
anEndEleme
nt() (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.impl.XML
DocumentFr
agmentScan
nerImpl$Fr
agmentCont
entDispatc
her.dispat
ch(boolean
) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.impl.XML
DocumentFr
agmentScan
nerImpl.sc
anDocument
(boolean) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
DTDConfigu
ration.par
se(boolean
) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
DTDConfigu
ration.par
se(org.apa
che.xerces
.xni.parse
r.XMLInput
Source) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
XMLParser.
parse(org.
apache.xer
ces.xni.pa
rser.XMLIn
putSource)
(/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.xerces.parsers.
AbstractSA
XParser.pa
rse(org.xm
l.sax.Inpu
tSource) (/usr/lib/lib-javax-xml-pa
rsers-2.2.
1.so)
at org.apache.tools.ant.helpe
r.ProjectH
elperImpl.
parse(org.
apache.too
ls.ant.Pro
ject, java.lang.Object) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Proje
ctHelper.c
onfigurePr
oject(org.
apache.too
ls.ant.Pro
ject, java.io.File) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Main.
runBuild(j
ava.lang.C
lassLoader
) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Main.
start(java
.lang.Stri
ng[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-t
ools-ant-1
.5.2.so)
at org.apache.tools.ant.Main.
main(java.
lang.Strin
g[]) (/usr/lib/lib-org-apache-t
ools-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 ?
Answer : Exception received when I execute my ant script
where have u put the jar for StringUtilTask
needs to go in ant's lib directory I think
Random Solutions
Forward one domain to another under Lighttpd
FreeNAS FreeBSD, cannot write to NAS
Replication Issue: The target principal name is incorrect
Block cyrillic emails in sendmail
sendmail : how to stop sending of mails ?
Connected but cant access (the internet)!
verify port connection
Postfix alternate port has saslauthd error
How to measure leased line speed using ping output
My location doesnt have High Speed Internet! What do I do now?