You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jirong Hu <Ji...@Sun.COM> on 2005/01/20 00:41:12 UTC
java.io.IOException: exectable not found
Hi
I am working on Solaris 10 and trying to invoke SunOne's web service
compiler to generate the static stub. But Ant can't find the exectuable.
Any idea?
Jirong
<target name="wscompile" depends="prepare">
<!-- Run wscompile to generate the static client stub into
{stub.home} -->
<exec dir="${bin.home}" executable="${bin.home}/wscomiple.sh">
<!--env key="PATH" path="/usr/appserver/bin"/-->
<arg line="-gen:client -d ${stub.home} -classpath ${classpath}
${config.wsdl.file}"/>
</exec>
</target>
bash-2.05b$ ant -verbose wscompile
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: build.xml
Detected Java version: 1.4 in: /usr/j2se/jre
Detected OS: SunOS
parsing buildfile /home/jh156661/eclipse/workspace/TestAM/build.xml with
URI = file:///home/jh156661/eclipse/workspace/TestAM/build.xml
Project base dir set to: /home/jh156661/eclipse/workspace/TestAM
Build sequence for target `wscompile' is [prepare, wscompile]
Complete build sequence is [prepare, wscompile, javadoc, test, clean,
compile, dist, all, ]
prepare:
[propertyfile] Updating property file:
/home/jh156661/eclipse/workspace/TestAM/build/version.properties
wscompile:
Property ${classpath} has not been set
[exec] Current OS is SunOS
[exec] Executing
'/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh' with arguments:
[exec] '-gen:client'
[exec] '-d'
[exec] '/home/jh156661/eclipse/workspace/TestAM/stub'
[exec] '-classpath'
[exec] '${classpath}'
[exec]
'/home/jh156661/eclipse/workspace/TestAM/config/assetmanagement-config.xml'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
BUILD FAILED
/home/jh156661/eclipse/workspace/TestAM/build.xml:50: Execute failed:
java.io.IOException:
/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh: not found
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:608)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:438)
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.io.IOException:
/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:564)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:605)
... 11 more
--- Nested Exception ---
java.io.IOException:
/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:564)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:605)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:438)
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: 2 seconds
bash-2.05b$
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: java.io.IOException: exectable not found
Posted by Yves Martin <yv...@elca.ch>.
Jirong Hu <Ji...@Sun.COM> writes:
> Hi
>
> I am working on Solaris 10 and trying to invoke SunOne's web service
> compiler to generate the static stub. But Ant can't find the exectuable.
> Any idea?
> <exec dir="${bin.home}" executable="${bin.home}/wscomiple.sh">
I used to spell 'compile' that way. 'wscomiple.sh' seems strange to me.
--
Yves Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: java.io.IOException: exectable not found
Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
Maybe it contains a path to an interpreter (first line after #!) that
does not exist on your system, or it is not available under your user id.
- Alexey.
Jirong Hu wrote:
>Hi
>
>I am working on Solaris 10 and trying to invoke SunOne's web service
>compiler to generate the static stub. But Ant can't find the exectuable.
>Any idea?
>
>Jirong
>
>
> <target name="wscompile" depends="prepare">
> <!-- Run wscompile to generate the static client stub into
>{stub.home} -->
> <exec dir="${bin.home}" executable="${bin.home}/wscomiple.sh">
> <!--env key="PATH" path="/usr/appserver/bin"/-->
> <arg line="-gen:client -d ${stub.home} -classpath ${classpath}
>${config.wsdl.file}"/>
> </exec>
> </target>
>
>
>
>bash-2.05b$ ant -verbose wscompile
>Apache Ant version 1.6.2 compiled on July 16 2004
>Buildfile: build.xml
>Detected Java version: 1.4 in: /usr/j2se/jre
>Detected OS: SunOS
>parsing buildfile /home/jh156661/eclipse/workspace/TestAM/build.xml with
>URI = file:///home/jh156661/eclipse/workspace/TestAM/build.xml
>Project base dir set to: /home/jh156661/eclipse/workspace/TestAM
>Build sequence for target `wscompile' is [prepare, wscompile]
>Complete build sequence is [prepare, wscompile, javadoc, test, clean,
>compile, dist, all, ]
>
>prepare:
>[propertyfile] Updating property file:
>/home/jh156661/eclipse/workspace/TestAM/build/version.properties
>
>wscompile:
>Property ${classpath} has not been set
> [exec] Current OS is SunOS
> [exec] Executing
>'/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh' with arguments:
> [exec] '-gen:client'
> [exec] '-d'
> [exec] '/home/jh156661/eclipse/workspace/TestAM/stub'
> [exec] '-classpath'
> [exec] '${classpath}'
> [exec]
>'/home/jh156661/eclipse/workspace/TestAM/config/assetmanagement-config.xml'
> [exec]
> [exec] The ' characters around the executable and arguments are
> [exec] not part of the command.
>
>BUILD FAILED
>/home/jh156661/eclipse/workspace/TestAM/build.xml:50: Execute failed:
>java.io.IOException:
>/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh: not found
> at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:608)
> at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:438)
> 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.io.IOException:
>/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh: not found
> at java.lang.UNIXProcess.forkAndExec(Native Method)
> at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Runtime.java:566)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
> at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
> at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
> at
>org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:564)
> at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:605)
> ... 11 more
>--- Nested Exception ---
>java.io.IOException:
>/home/jh156661/eclipse/workspace/TestAM/bin/wscomiple.sh: not found
> at java.lang.UNIXProcess.forkAndExec(Native Method)
> at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Runtime.java:566)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
> at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
> at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
> at
>org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:564)
> at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:605)
> at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:438)
> 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: 2 seconds
>bash-2.05b$
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
--
------------------------------------------------------------------------
/ Alexey N. Solofnenko
MDL Information Systems, Inc.
work: 510-357-2222x1726
home: http://trelony.cjb.net/
/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org