ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harshal Chavda" <h_...@rediffmail.com>
Subject problem with exec task
Date Sun, 05 Feb 2006 19:10:11 GMT
  
HI to all fellow users,
		My configuration is jdk(1.3.1),Ant(1.6.3),tomcat(4.1) 
on a windows XP.I want to start the tomcat server(startup.bat).So I 
used the "exec" task.BUt I get an error which is follows :

====================================================================
prac.xml:82: Execute failed: java.io.IOException: CreateProcess: 
startup.bat error=2 at
	at 
====================================================================
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:620)
	at 
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
	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(DefaultExec
utor.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)
--- Nested Exception ---
java.io.IOException: CreateProcess: startup.bat error=2
	at java.lang.Win32Process.create(Native Method)
	at java.lang.Win32Process.<init>(Win32Process.java:61)
	at java.lang.Runtime.execInternal(Native Method)
	at java.lang.Runtime.exec(Runtime.java:546)
	at java.lang.reflect.Method.invoke(Native Method)
	at 
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execu
te.java:834)
	at 
org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
	at 
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
	at 
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:576)
	at 
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
	at 
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
	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(DefaultExec
utor.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)

=====================================================================
The line 82 is-->	
<exec dir="tomcat 4.1\bin" executable="startup.bat"/>.

Can anyone please tell me how to find a solution for this Exception as 

I can only write very simple java programs and as such my knowledge of 

JAVA is limited.

Thanks Harshal
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message