WSADMIN issues exception WASX7022E while executing AdminApp export command
 Technote (troubleshooting)
 
Problem(Abstract)
WSADMIN tool issues following exception when executing the command :

./wsadmin.sh -username wpsbind -password wpsbind -c "$AdminApp export wps /tmp/wpsTemp/wps.ear"

WASX7209I: Connected to process "server1" on node dprtla1 using SOAP connector; The type of process is: UnManagedProcess WASX7022E: Problem running command " export wps /tmp/wpsTemp/wearr" -- exception information: com.ibm.bsf.BSFException: error while eval'ing
Jacl expression: invalid command name "export"

In the above command , wps.ear is an application that we are exporting and /tmp/wpsTemp/wps.ear is the location where we are exporting to.
 
Cause
On UNIX®, using wsadmin -c to invoke a command that includes dollar signs results in the shell attempting to do variable substitution.
 
Resolving the problem
This problem appears only in a UNIX environment when running a scripting command as individual command.
To correct this problem, escape the dollar sign with a backslash. For example:
wsadmin -c "\$AdminApp export ..."
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Administrative Scripting Tools (for example: wsadmin or ANT)
Operating system(s): Solaris
Software version: 6.1
Software edition:
Reference #: 1178961
IBM Group: Software Group
Modified date: Sep 17, 2004