• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Excecuting stopapplication ANT task from Windows platform, on a WAS server running on UNIX box.

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While executing stopapplication ANT task from Windows platform on a server running on a UNIX box, I get an error saying the setupCmdLine.bat command is not found.

Following is the script log for your reference:

echo] Stopping the application

wsStopApp] Stopping Application [RabbitEar]...

BUILD FAILED

C:\work\build\DepolyOnWAS.xml:59: Unable to parse setupCmdLine: \rabbit\dev\WebSphere70dev\Common\bin\setupCmdLine.bat (The system cannot find the path specified.)



The file setupCmdLine.sh is there in the metioned path, however, it looks for the file setupCmdLine.bat.


It happens with statApplication, stopserver, and startserver also.

Somehow, I'm not able to tell the script that the server is lying on remote UNIX box, and it should look for setupCmdLine.sh instead of setupCmdLine.bat.


NOTE: The script runs perfectly fine on a server running on Windows platform.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fix your script to refer to a .sh file instead of a .bat file.

If you need more help than that, post the script.
 
Yogendra Singh Butola
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<taskdef name="wsStopApp" classpathref="lib.ref" classname="com.ibm.websphere.ant.tasks.StopApplication" />

<target name="stopApplication">
<echo message="Stopping the application" />
<wsStopApp application="MyAppEar" conntype="${remoteConnType}" washome="${user.install.root}" server="${was.server}" host="${remoteHostName}" node="${was.node}" port="8880" failonerror="true" />
</target>


What can I set to let the script know to use .sh


-Yogi
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The wsStopApp task is not part of Ant, it is part of WebSphere extensions to Ant. I am somewhat surprised that IBM has not coded this task to determine what OS it is running on and thus invoke the correct script. Anyway, you will probably get more help from people familiar with the WebSphere extensions for Ant so I will move your post.
 
Not so fast naughty spawn! I want you to know about
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic