cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 error "404 not found"

Former Member
0 Kudos

Hi all,

I'm looking into the SHINE content for SAPUI5, Odata, XS etc.  Looks very nice, and it's working fine. (HANA dev edition 1.91 via MS Azure!)

The next step I'm trying to take is to make some examples myself.  First by starting simple and replicating the shine content into a project of my own.

I started with exposing a table using Odata (.xsodata file), which works fine.

When I run it in the HANA web server, I get the logon screen, and after logging on I get the XML or JSON.  Nice.

I also created an .xsjs which returns a json of the same data, also nice.  I'm on a roll, or at least that's what I thought...

Now I want to display this data in a SAPUI5 application, which is also in the shine content.

The Shine content works fine.  But now I want to redo the shine content in a custom package.

And there it goes wrong.

No matter what I do, I always get error "404 not found" when running the html page in the hana web server.

I don't even get to the login screen.  Immediately I get this error.

Let me also add that the shine content (so sap package) works fine.  Only if I run the same code in a package created by me, it does not work.

I also copied the (working) shine content into my project.  Result: this copied code does not work, the same error.

The generated URL seems to be ok, the code is checked, shared and committed.

What could this be?

I already reinstalled my hana studio and addons + sapui5, but the issue remains.  Am I missing something?

XS, UI5 etc seem to work fine, or the shine content wouldn't work.

Accepted Solutions (1)

Accepted Solutions (1)

roberto_falk
Participant
0 Kudos

Hi,

can you post the project tree here? At first look, seems you are missing .xsapp and .xsaccess files. Can you also check this?

Best regards,

Roberto Falk

Former Member
0 Kudos

Ouch, you are right.  The files were there, but not in the root of the app.  So that won't work.  Did not notice that at all...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Star Buck,

There are so many things that could be going wrong. Inside of some of the xsjs.lib it imports others xsjs.libs. The Shine content has grown so much and they have added some really good stuff on it.

What I would recommend instead of just replicating the Shine content. Why don't you go through the last OpenSAP HANA development course exercise files.

course name (OPENSAP HANA Next Steps in Development)

The exercise file will give you a better understand of the parts which compose the Shine content. You can get the exercise pdf on the below link.

Exercise