title: Error: File not found /home/vcap/app/xs-app.json
body: <p>trying to install the approuter currently, following this tutorial:</p>
  
  <p><a href="https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/" rel="nofollow noreferrer">https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/</a></p>
  
  <p>When pushing the approuter to CF, I get an error:</p>
  
  <pre><code> 2019-04-29T08:39:34.43+0200 [APP/PROC/WEB/0] ERR /home/vcap/app/approuter/lib/environment.js:19
     2019-04-29T08:39:34.43+0200 [APP/PROC/WEB/0] ERR       throw new Error('File not found ' + xsappFile);
     2019-04-29T08:39:34.43+0200 [APP/PROC/WEB/0] ERR       ^
     2019-04-29T08:39:34.43+0200 [APP/PROC/WEB/0] ERR Error: File not found /home/vcap/app/xs-app.json
  </code></pre>
  
  <p>This is my manifest.yml:</p>
  
  <pre><code>---
  applications:
  - name: xyz
    command: 'node approuter/approuter.js'
    host: xyz-93deb1cd-7b72-4060-94e7-30baef85d259
    path: approuter
    memory: 128M
    buildpack: https://github.com/cloudfoundry/nodejs-buildpack
    env:
      TENANT_HOST_PATTERN: 'xyz(.*).cfapps.eu10.hana.ondemand.com'
      destinations: '[{"name":"service-destination", "url": "https://gfuowb4ett234agtuthorizations-srv.cfapps.eu10.hana.ondemand.com", "forwardAuthToken": true}]'
      SAP_JWT_TRUST_ACL: '[{"clientid" : "*", "identityzone" : "*"}]'
  
    services:
      - my-xsuaa
      - service-destination
  </code></pre>
  
  <p>This is my xs-app.json, which is located in my "approuter" folder.</p>
  
  <pre><code>{
    "routes": [{
      "source": "/",
      "target": "/",
      "destination": "service-destination"
    }]
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RIfzV.png" rel="nofollow noreferrer">This is my folder structure</a></p>
  
  <p>When I move the xs-app.json in the root folder where it seems to be expected, I get the following error message: </p>
  
  <pre><code>xs-app.json/routes/0: Format validation failed (Route references unknown destination "service-destination")
  </code></pre>