Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Correct CP for running WAS tasks from ANT?

Correct CP for running WAS tasks from ANT?

2003-03-06       - By Mika Moilanen


I've been trying to run Websphere "wsServerStatus" from ANT build
file:

----------------------------------------------------------
<taskdef name="wsServerStatus" classname="com.ibm.websphere.ant.tasks
.ServerStatus"/>

<target name="status">
<wsServerStatus
 server="server1"
 quiet="false"
 trace="true"
 all="false"
 statusPort="20005"
 wasHome="/vobs/user/mikmoila/was/"
 failonerror="true"/>
</target>
----------------------------------------------------------

So far I haven't been able to figure CLASSPATH settings; One I know
for sure: I've to add $(WAS)/wsanttasks.jar.

When I run this, however, I get:
----------------------------------------------------------
status:
[serverStatus] Exception in thread "main" java.lang.NoClassDefFoundError: com
/ibm/ws/bootstrap/WSLauncher
----------------------------------------------------------

What might be the correct classpath for running WAS tasks in ANT?

--
Best Regards,
  Mika
----------------------------------------------------------
mikmoila@(protected)  phone: +358-0-511-23587
Nokia Networks, PO box 320, FIN-00045 NOKIA GROUP, Finland
----------------------------------------------------------



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.