ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bengali Bengali <bengalis...@gmail.com>
Subject ClassCastException using a macro
Date Tue, 19 Apr 2005 08:42:56 GMT
Hi,

I have a ClassCastException when ant uses a macro called j2eeapp-deploy.
What is strange is that the exactly same macro when called from
another build file works perfectly. 
I have noticed that if I call a specific other macro in my build
script called concatproperties
the call of the j2eeapp-deploy after the concatproperties generates a
ClassCastException (see below).
The 2 macros are in separated build files. Since the macros are pretty
long I didn't attach them to mail but is it a known issue ?
The ant version is ant 1.6.2 with Sun jdk142_05.

Thanks
Luc

BUILD FAILED
C:\views\ant\build-metadatatools.xml:51: The following error occurred
while executing this line:
C:\views\ant\build-metadatatools.xml:216: java.lang.ClassCastException
 at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:379)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 at org.apache.tools.ant.Main.runBuild(Main.java:673)
 at org.apache.tools.ant.Main.startAnt(Main.java:188)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: C:\views\ealisinteg_alisneadm_int\vob-alisne-build\Ealis_Build\ant\build-metadatatools.xml:216:
java.lang.ClassCastException
 at org.apache.tools.ant.Task.perform(Task.java:373)
 at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
 ... 10 more
Caused by: java.lang.ClassCastException
 at org.apache.tools.ant.taskdefs.MacroInstance.copy(MacroInstance.java:273)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:374)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 ... 14 more
--- Nested Exception ---
C:\views\ealisinteg_alisneadm_int\vob-alisne-build\Ealis_Build\ant\build-metadatatools.xml:216:
java.lang.ClassCastException
 at org.apache.tools.ant.Task.perform(Task.java:373)
 at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 at org.apache.tools.ant.Main.runBuild(Main.java:673)
 at org.apache.tools.ant.Main.startAnt(Main.java:188)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.ClassCastException
 at org.apache.tools.ant.taskdefs.MacroInstance.copy(MacroInstance.java:273)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:374)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 ... 14 more
--- Nested Exception ---
java.lang.ClassCastException
 at org.apache.tools.ant.taskdefs.MacroInstance.copy(MacroInstance.java:273)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:374)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 at org.apache.tools.ant.Main.runBuild(Main.java:673)
 at org.apache.tools.ant.Main.startAnt(Main.java:188)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

Total time: 3 minutes 43 seconds

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


Mime
View raw message