ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Seeger <see...@sitewaerts.de>
Subject Re: 'Exception in thread "main"' for java after Ant upgrade to 1.6.5
Date Wed, 12 Oct 2005 12:28:46 GMT
Someone has an idea what I can do or how I can debug this ?

thanks
Felix


Am Monday, 19. September 2005 15:18 schrieb Felix Seeger:
> Hi,
>
> I have a ant task used to precompile jsps. This is java command:
> --
> <java
>   classpathref="finalizer-classpath"
>   classname="org.apache.jasper.JspC"
>   failonerror="true"
>   fork="true"
>   maxmemory="512m">
>   <arg line="-d ${dir.work.jspc} -p jsp -webxml
> ${dir.tmp}/generated-web.xml -webapp ${dir.tmp.dist} -uriroot
> ${dir.tmp.dist} -poolingEnabled false"/> </java>
> --
>
> With Ant 1.6.2 there was not problem at all, but now with 1.6.5 I only get:
> --
>      [java] Exception in thread "main"
> BUILD FAILED
> The following error occurred while executing this line:
> Java returned: 1
> --
>
>
> If I start ant with -debug I get the following exception:
>
> [...]/build.xml:52: The following error occurred while executing this line:
> [...]/build.xml:246: Java returned: 1
>         at
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelpe
>r.java:539) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384) 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.executeSortedTargets(Project.java:1216) at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185) at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.
>java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: [...]/build.xml:246: Java returned: 1
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
>         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.executeSortedTargets(Project.java:1216) at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckE
>xecutor.java:37) at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068) at
> org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382) ... 12 more
> --- Nested Exception ---
> [...]/build.xml:246: Java returned: 1
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
>         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.executeSortedTargets(Project.java:1216) at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckE
>xecutor.java:37) at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068) at
> org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382) 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.executeSortedTargets(Project.java:1216) at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185) at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.
>java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> Total time: 46 seconds
>
>
>
> Someone knows what is wrong ? Something with the command ?
>
>
>
> Thanks a lot for you help
> Felix

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


Mime
View raw message