WASX7015E: Exception running command error when executing $AdminApp install WSAdmin command containing spaces in the -installdir variable value
 Technote (troubleshooting)
 
Problem(Abstract)
The $AdminApp install WSAdmin command fails with java.util.ArrayList Error because the tcl variable is not being created properly.
 
Resolving the problem
When executing the following command:
wsadmin>$AdminApp install $ICSdir\WBSM/CWDashboard.war $attrs

you receive one of the following two errors, depending on your version of WebSphere® Application Server:

Error 1
WASX7015E: Exception running command: "$AdminApp install C:/WebSphere50/DeploymentManager/bin/classloaderdump.war $attrs"; exception information:
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: WASX7122E: Expected "{" not found. -contextroot /ICS -cell FatherNetwork -node Father -server server1 -installdir {C:/Temp Font/test} -appname classloaderdump

Error 2
WASX7015E: Exception running command: "$AdminApp install $ICSdir\WBSM/CWDashboard.war [subst {$attrs}]"; exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.util.ArrayList
The cause of these errors is that space in the -installdir variable value is not set properly as a JACL variable.

Below are two examples of proper ways to set the -installdir variable when the directory path contains spaces.

Example 1
wsadmin>set attrs {-contextroot /ICS -cell FatherNetwork -node Father
-server server1 -installdir "C:/Temp Font/test" -appname
classloaderdump}
wsadmin>$AdminApp install
C:/WebSphere50/DeploymentManager/bin/classloaderdump.war $attrs

Example 2
wsadmin>set b {"C:/Temp Font/test"}
wsadmin>set attrs "-contextroot /ICS -node Father -installdir $b -appname
cla"
wsadmin>$AdminApp install
C:/WebSphere50/DeploymentManager/bin/classloaderdump.war $attrs
 
 
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 > General
Operating system(s): Windows
Software version: 5.0.2.7
Software edition:
Reference #: 1179456
IBM Group: Software Group
Modified date: Sep 15, 2004