Wsinstance command fails with com.ibm.websphere.ant.tasks.NLSEcho exception
 Technote (troubleshooting)
 
Problem(Abstract)
The wsinstance command fails with com.ibm.websphere.ant.tasks.NLSEcho cannot be found exception.
 
Cause
The wsinstance command creates multiple configuration instances of one initial installation of the product and it is based on the base product ANT Utilities feature, which is required.

wsinstance command may fail with the following exception, if the Ant Utilities check box was not selected during product installation:

BUILD FAILED /bin/wsinstance/instance.xml:2: taskdef class com.ibm.websphere.ant.tasks.NLSEcho cannot be found.

 
Resolving the problem

Solution 1

Stop all java process and then re-install the Ant Utilities. You may have to unfederate the node before installing the existing feature. Please refer to the following WebSphere® Application Server Information Center topic for more information: Installing additional features on a base Application Server infocenter.

Solution 2

  • Stop all java processes.
  • Move the install-root/lib/wsanttasks.jar file to a temporary location.
  • Copy the wsanttasks.jar file from a working system and place it under the install-root/lib folder of the non-working system.
  • Run the wsinstance command again.

Note: While copying the jar file from working system, make sure it is also the same WebSphere Application Server version as non-working box.

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
Historical Number
79465
442
000
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Install
Operating system(s): Windows
Software version: 5.1
Software edition:
Reference #: 1220330
IBM Group: Software Group
Modified date: Sep 25, 2007