ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: java.io.IOException: exectable not found
Date Thu, 20 Jan 2005 00:11:43 GMT
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


Mime
View raw message