title: Worklight context root not updating / How to redeploy worklight server in eclipse dev
body: <p>Afternoon All,</p>
  
  <p>Here is my context:</p>
  
  <p>I am setting up an existing worklight project with App Envs for IPhone, Android, and Mobile Web.</p>
  
  <p>When using the Worklight Console to preview the apps, I get context root errors from the iPhone app only. (I get the Error: The Server was unable to process the request from the appl...)</p>
  
  <p>When I open the browsers JS console, I see the problem is that the app is requesting the wrong context root. It is accessing the /worklight/ context, which is not there.</p>
  
  <p>The contextroot that does work is the following:
      http://localhost:8080/apps/services/api/[APPNAME]/iphone/init</p>
  
  <p>The Context root that the iphone is trying to hit:
      http://localhost:8080/worklight/apps/services/api/[APPNAME]/iphone/init</p>
  
  <p>Here is the weird part. The context root is fine for the Android, and Mobile Web environments. Only the iPhone environment is having context root issues. </p>
  
  <p>All three environments are sharing the same application-descriptor.xml file and same server.</p>
  
  <p>Below are some file outputs.</p>
  
  <p>Files below:</p>
  
  <p>/server/conf/worklight.properties</p>
  
  <pre><code>publicWorkLightHostname=localhost
  publicWorkLightProtocol=http
  publicWorkLightPort=8080
  publicWorkLightContext=/worklight/
  </code></pre>
  
  <p>/apps/[APPNAME]/application-descriptor.xml</p>
  
  <pre><code>&lt;worklightServerRootURL&gt;http://localhost:8080&lt;/worklightServerRootURL&gt;
  </code></pre>
  
  <p>So a couple of questions.</p>
  
  <p>1) When setting the context roots, what is the relationship between the client and server. Do the context roots have to match between the two? Is one a master and the other simply slaves from that and does not need settings?</p>
  
  <p>2) (Somewhat unrelated) While debugging this issue I have come across zero documentation about how to go about "un-deploying" the server in the Eclipse dev ide. (un-deploy the server is right from IBM's documentation) I need to know how to redeploy the server when I make changes to the server settings (worklight.properties). I have seen references to cracking open the war manually, to just stopping and starting the server in the IDE.</p>
  
  <p>Any help is greatly appreciated.</p>