Skip to Content
avatar image
Former Member

HANA Express UI5 application, 404 on non-HTML resources


After creating a UI5 application in Eclipse, adding a .xsaccess file and a .xsapp file, I can navigate to my index.html on http://host:8000/my/app/index.html.

In the same folder as index.html is Component.js, but this file produces a 404 from the XS Engine - and the same is true for other files in this folder / subfolders.

XSJS files seem to work though.

I might be missing a setting. How to expose JS/JSON files?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 13, 2016 at 05:23 AM

    If you did set the "expose: true" property in the .xsaccess file it should be accessible to (if index.html can be loaded).

    What resource-roots did you define in the index.html, how did you load the component using a component container and what full qualified name (namespace + component) did you give the component?



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Florian,

      That's what I thought at first too, but direct access doesn't work either. I have, in the same folder: index.html and Component.js.

      index.html is cool:

      Component.js is not:

      Another argument against that is that it works through Web IDE as an XSJS app, and locally on my laptop.