|
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 |
|
|
|
|
|
|