Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to start a remote tomcat server from an ant build file

843836Jun 9 2005 — edited Jun 10 2005
I am writting a buildfile for ant in which i need to start and stop a tomcat server located in remote unix box. but got error like this.

appreciated if you can ler me know how to define the it in buildfile.

Execute failed: java.io.IOException: CreateProcess: "10.20.10.101\etc\rc3.d\S99tomcat stop" error=2

My script like below,

<project name="XXX" basedir="." default="all">
......
<property name="tomcat.path" value="10.20.10.101/etc/rc3.d"/>
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
<target name="tomcat-stop" depends="">
<exec executable="${tomcat.path}/S99tomcat stop"/>
</target>
......
</project>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2005
Added on Jun 9 2005
9 comments
293 views