Build errors
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   lucy_willett
Posted On:   Tuesday, June 3, 2003 04:13 AM

Can anyone explain this build error when i try to deploy a simple web service using ant? BUILD FAILED file:C:/jwsdp-1.1/docs/tutorial/STYWebServices/chapter14/common/targets.xml:123: Execute failed: java.io.IOException: CreateProcess: C:jwsdp-1.1jakarta-ant-1. 5.1.. inwsdeploy.bat -tmpdir build/wsdeploy-generated -o dist/credit-deployab le.war dist/credit-portable.war -verbose error=2 at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:371) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks   More>>

Can anyone explain this build error when i try to deploy a simple web service using ant?

			
BUILD FAILED
file:C:/jwsdp-1.1/docs/tutorial/STYWebServices/chapter14/common/targets.xml:123:
Execute failed: java.io.IOException: CreateProcess: C:jwsdp-1.1jakarta-ant-1.
5.1.. inwsdeploy.bat -tmpdir build/wsdeploy-generated -o dist/credit-deployab
le.war dist/credit-portable.war -verbose error=2
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:371)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: java.io.IOException: CreateProcess: C:jwsdp-1.1jakarta-ant-1.5.1..
inwsdeploy.bat -tmpdir build/wsdeploy-generated -o dist/credit-deployable.war
dist/credit-portable.war -verbose error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process. (Win32Process.java:63)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:647)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:417)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:428)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:329)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:368)
... 9 more
--- Nested Exception ---
java.io.IOException: CreateProcess: C:jwsdp-1.1jakarta-ant-1.5.1.. inwsdepl
oy.bat -tmpdir build/wsdeploy-generated -o dist/credit-deployable.war dist/credi
t-portable.war -verbose error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process. (Win32Process.java:63)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:647)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:417)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:428)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:329)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:368)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
   <<Less

Re: Build errors

Posted By:   Mathieson_Sterling  
Posted On:   Wednesday, June 4, 2003 11:34 AM

One of the best ways I've found to debug exec errors is to take the line it is erroring on

C:jwsdp-1.1jakarta-ant-1.
5.1..inwsdeploy.bat -tmpdir build/wsdeploy-generated -o dist/credit-deployab
le.war dist/credit-portable.war -verbose

and try to run it from the directory you launch your ant script at. This will often give you more of an idea of what is happening, as it allows the normal error messages to be displayed.

Re: Build errors

Posted By:   Erik_Hatcher  
Posted On:   Tuesday, June 3, 2003 07:30 PM

My guess is that you don't have that .bat file in your PATH or are not referencing it properly.

Re: Build errors

Posted By:   Eugene_Kuleshov  
Posted On:   Tuesday, June 3, 2003 06:31 AM

Why don't you format your message and put all of the stacktrace into "pre" tags. It will be much more pleasant to read your post.
About | Sitemap | Contact