title: Jacl script war deploymet
body: <p>I'm trying to deploy war in websphere using jacl script , below is the command i'm using </p>
  
  <pre><code>set opts [list -cluster $clusterName -appname $earFileName -contextroot $appContextRoot -installed.ear.destination $destination -MapWebModToVH $virtualHost]
  
  $AdminApp install $earFileLocation  $opts
  </code></pre>
  
  <p>After adding <code>-MapWebModToVH $virtualHost</code> parameter i'm getting </p>
  
  <p><strong>WASX7017E: java.lang.ClassCastException: java.lang.String incompatible with java.util.List</strong></p>
  
  <p>i checked the link <a href="http://www-01.ibm.com/support/docview.wss?uid=swg21428721" rel="nofollow">http://www-01.ibm.com/support/docview.wss?uid=swg21428721</a> for reference. </p>
  
  <p>any help will be appreciated </p>
  
  <p><strong>updates</strong></p>
  
  <ol>
  <li><code>set opts [list -cluster $clusterName -appname $earFileName -contextroot $appContextRoot -installed.ear.destination $destination -MapWebModToVH {$virtualHost}]</code></li>
  </ol>
  
  <p>then i get</p>
  
  <pre><code> WASX7017E: Exception received while running file "./CSDeployWar.jacl"; exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List
  </code></pre>
  
  <p>2  <code>set opts [list -cluster $clusterName -appname $earFileName -contextroot $appContextRoot -installed.ear.destination $destination {-MapWebModToVH {$virtualHost}}].</code> 
  then i get </p>
  
  <pre><code>java.lang.IllegalArgumentException: WASX7122E: Expected "-" not found
  </code></pre>