title: Unable to deploy EAR in WebSphere Application Server in Unix with ANT Scripts
body: <p>I am trying to deploy EAR in my WAS 7.0 in Unix Server by means of ANT Scripts but couldn't get it working.It works fine in Windows environment.</p>
  
  <p>A part of ws_ant.xml is as follows,</p>
  
  <pre><code>&lt;property name="options" value="-appname CRMWeb -MapModulesToServers {{.* .* WebSphere:cell=Cell01,node=Node01_POR,server=Web_Server1}}" /&gt;
  
  &lt;property name="application" value="CRMWeb" /&gt;
  &lt;property name="conntype" value="SOAP" /&gt;
  &lt;property name="host" value="172.20.10.10" /&gt;
  &lt;property name="port" value="20062" /&gt;
  &lt;property name="profile_root" value="/opt/app/was7/wasprd02/AppServer" /&gt;
  &lt;property name="webserverName" value="Web_Server1" /&gt;
  &lt;taskdef name="wsStartApp" classname="com.ibm.websphere.ant.tasks.StartApplication"/&gt;
  &lt;taskdef name="wsStopApp" classname="com.ibm.websphere.ant.tasks.StopApplication"/&gt;
  &lt;taskdef name="wsUninstallApp" classname="com.ibm.websphere.ant.tasks.UninstallApplication"/&gt;
  &lt;taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/&gt;
  
  
  &lt;target name="uninstallApp"&gt;
  &lt;wsUninstallApp
  application="${application}"
  conntype="${conntype}"
  host="${host}"
  port="${port}"
  user="${userId}"
  password="${password}"
  failonerror="false"
  /&gt;
  &lt;/target&gt; 
  </code></pre>
  
  <p>When I try to install / uninstall the EAR in Unix with above script, there is no effect. Manual deployment from WebSphere console is working fine.</p>
  
  <p>I have referred <a href="https://stackoverflow.com/questions/3117785/using-ant-to-deploy-ear-to-remote-websphere-application-server">Using Ant to deploy EAR to remote websphere application server</a> and tried to make some changes but still it is not working.</p>
  
  <p>Please suggest.</p>
  
  <p>Thanks</p>