Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
A feeble attempt to tell you about our stuff that makes us money
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!