Depending on what is running in your WebSphere environment, it may take a really long time
to start. Try timing how long it takes to start up and then adjust your timeout attribute
accordingly. Time it from remote...
time ssh user@host "/etc/init.d/websphere start"
Another option is to background the start command, but then ant will exit successfully whether
or not websphere starts successfully.
-Rob Anderson
> -----Original Message-----
> From: Nick Neuberger [mailto:Nick.Neuberger@sncc.com]
> Sent: Wednesday, March 03, 2004 10:01 AM
> To: user@ant.apache.org
> Subject: Sshexec fail on starting a service (websphere)
>
>
> I'm trying to call start a service and the service actually
> starts but ant
> always fails on timeout from the task. Other services are
> working fine such
> as ibmhttpd service.
>
> I'm running ANT Build script on win2k and server is redhat linux.
>
> Any thoughts? I think it might have something to do with the
> websphered
> script in /etc/rc.d/init.d/
>
> Snippet of output.
>
> stopServiceWebSphered:
> [echo] ****** Stopping WebSphereD Service... ******
> [sshexec] Connecting to machine1:22
> [sshexec] Shutting down websphered:
> [sshexec] [ OK ]
>
> startServiceWebSphered:
> [echo] ****** Starting WebSphereD Service... ******
> [sshexec] Connecting to machine1:22
> [sshexec] Starting websphered:
> [sshexec] [ OK ]
>
> BUILD FAILED
> C:\workspace\v5.1\imsii\sncc-ims-build\deploy.xml:50: Following error
> occured while executing this line
> C:\workspace\v5.1\imsii\sncc-ims-build\deploy.xml:79: Timeout period
> exceeded, connection dropped.
>
> Total time: 6 minutes 35 seconds
>
> Snipped of ANT script.
>
> <target name="stopServiceHttpServer">
> <echo message="****** Stopping Service Http Server...
> ******"/>
> <sshexec trust="true" timeout="15000"
> host="${targetMachine}" username="${user.id}" password="${password}"
> command="sudo /sbin/service ibmhttpd stop"/>
> </target>
>
> <target name="startServiceHttpServer">
> <echo message="****** Starting Service Http Server...
> ******"/>
> <sshexec trust="true" timeout="15000"
> host="${targetMachine}" username="${user.id}" password="${password}"
> command="sudo /sbin/service ibmhttpd start"/>
> </target>
>
> <target name="stopServiceWebSphered">
> <echo message="****** Stopping WebSphereD Service...
> ******"/>
> <sshexec trust="true" timeout="240000"
> host="${targetMachine}" username="${user.id}" password="${password}"
> command="service websphered stop"/>
> </target>
>
> <target name="startServiceWebSphered">
> <echo message="****** Starting WebSphereD Service...
> ******"/>
> <sshexec trust="true" timeout="320000"
> host="${targetMachine}" username="${user.id}" password="${password}"
> command="service websphered start"/>
> </target>
>
>
> Thanks ahead..
>
> Nick
>
>
> - - - - - -
> This e-mail message is intended only for the use of the
> individual or entity
> identified in the alias address of this message and may
> contain confidential
> and privileged information. Any unauthorized review, use,
> disclosure or
> distribution of this e-mail message is strictly prohibited.
> If you have
> received this e-mail message in error, please notify the
> sender immediately
> by reply e-mail and delete this message from your system. Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|