This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT Task problem for Websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "ANT Task problem for Websphere" Watch "ANT Task problem for Websphere" New topic
Author

ANT Task problem for Websphere

nalini kanth
Greenhorn

Joined: Apr 28, 2004
Posts: 1
Hi folks,

i am trying to so basic admnin tasks with Ant using Wsdmin tasks ,this it simple XMl script i am using:
<project name="start" default="start" basedir=".">



<taskdef name="wsStopApplication" classname="com.ibm.websphere.ant.tasks.StopApplication"/>
<target name="start">
<wsStopApplication wasHome="C:\Program Files\WebSphere\AppServer" server="server1" application="NNGCO" />
</target>
</project>

This is one is giving out error as
Buildfile: wsadmin.xml
[taskdef] dropping c:\Program Files\ibm\websphere studio\applicationdeveloper\
v5.1\runtimes\base_v5\lib from path as it doesn't exist
start:
[wsStopApplication] Stopping Application [NNGCO]...
[wsadmin] java.lang.reflect.InvocationTargetException
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsadmin] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[wsadmin] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[wsadmin] at java.lang.reflect.Method.invoke(Method.java:324)
[wsadmin] at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
[wsadmin] Caused by: java.lang.NoClassDefFoundError: com/ibm/jsse/IBMJSSEProvi
der
[wsadmin] at java.lang.Class.forName0(Native Method)
[wsadmin] at java.lang.Class.forName(Class.java:141)
[wsadmin] at com.ibm.websphere.management.AdminClientFactory.createAdminCl
ient(AdminClientFactory.java:273)
[wsadmin] at com.ibm.ws.scripting.CommonScriptingObject.connectToAdminServ
ice(CommonScriptingObject.java:117)
[wsadmin] at com.ibm.ws.scripting.CommonScriptingObject.<init>(CommonScrip
tingObject.java:99)
[wsadmin] at com.ibm.ws.scripting.AdminControlClient.<init>(AdminControlCl
ient.java:154)
[wsadmin] at com.ibm.ws.scripting.AbstractShell.createControlClient(Abstra
ctShell.java:887)
[wsadmin] at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:151
8)
[wsadmin] at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:827)
[wsadmin] ... 5 more

Tried setting up Java_Home right but of no use.

CAN any one suggest any Solution.

Thanks Much,
kanth
 
 
subject: ANT Task problem for Websphere
 
Threads others viewed
WsAnt task -- Please specify a different location with -tracefile option.
WAS 7 Please specify a different location with -tracefile option.
Ant Build Failed for uninstall
Need help in build applications using ant : getting exception
ant task problem: please help me!
IntelliJ Java IDE