Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant tasks from WSAD

 
praveen Shangunathan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
im trying to run ant tasks to check server status, start application etc.,
However I get a 'The Application Server "server1" cannot be reached. It appears to be stopped' eventhough server1 is running.
However running the serverStatus.bat file shows that server1 is running.

Please advice.

heres the code snippet.

<property name="was.home" value="D:\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51" />
<property name="ws.server" value="server1"/>

<path id="ws.classpath">
<fileset dir="${was.home}\lib" includes="**/*.jar"/>
</path>

<taskdef name="wsServerStatus" classname="com.ibm.websphere.ant.tasks.ServerStatus" classpathref="ws.classpath"/>
<target name="status">
<wsServerStatus server="${ws.server}" wasHome="${was.home}"/>
</target>
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Praveen,
Please edit your post to replace < with &lt; so the XML displays.
 
praveen Shangunathan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh here it is without the < >(i guess!) -

property name="was.home" value="D:\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51"
property name="ws.server" value="server1"

path id="ws.classpath"
fileset dir="${was.home}\lib" includes="**/*.jar"
/path

taskdef name="wsServerStatus" classname="com.ibm.websphere.ant.tasks.ServerStatus" classpathref="ws.classpath"

target name="status"
wsServerStatus server="${ws.server}" wasHome="${was.home}"
/target
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic