This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Websphere and the fly likes ant tasks from WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "ant tasks from WSAD" Watch "ant tasks from WSAD" New topic
Author

ant tasks from WSAD

praveen Shangunathan
Ranch Hand

Joined: Sep 06, 2005
Posts: 65
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

Praveen,
Please edit your post to replace < with &lt; so the XML displays.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
praveen Shangunathan
Ranch Hand

Joined: Sep 06, 2005
Posts: 65
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ant tasks from WSAD
 
Similar Threads
Problems with Tomcat Ant Tasks
How to start or run a application on newly created server2 on WebSphere
ant script error
Spring coniguration
ant websphere wsstartserver