title: MobileFirst application not using deployed adapter, attempting to use development server adapter instead
body: <p>I'm running MobileFirst 7.0 on a Liberty installation.</p>
  
  <p>Having successfully deployed my application and adapter into the runtime, the preview, when run from the servers operations console, is apparently trying to communicate with the adapter from the development server rather than the one running on Liberty.</p>
  
  <pre><code>[/MaximoMobile/apps/services/api/PhyCount/common/query] failure. state: 404, response: undefined
  </code></pre>
  
  <p>The runtime on the server is not called MaximoMobile, that is just the name of the project within Eclipse. It shouldn't be being referenced at all outside of the local copy of Mobilefirst.</p>
  
  <p>I've looked up documentation in instructing the application to use the deployment server rather than the development server using JNDI entries in the server.xml file (<a href="http://www-01.ibm.com/support/knowledgecenter/SSHSCD_6.3.0/com.ibm.worklight.deploy.doc/admin/t_using_JNDI_lookup_to_override_WL_properties.html" rel="nofollow noreferrer">http://www-01.ibm.com/support/knowledgecenter/SSHSCD_6.3.0/com.ibm.worklight.deploy.doc/admin/t_using_JNDI_lookup_to_override_WL_properties.html</a>), but I can't see anything incorrectly set, or anything even relating to the adapter.</p>
  
  <p>I have managed to set the endpoint to /worklight as required using Eclipse, but it's still returning 404 and attempting to access a non-existent file.</p>