sap-ui-core.js - Failed to load resource: the server responded with a status of 404 (Not Found)

user3037180 picture user3037180 · Dec 30, 2015 · Viewed 10.5k times · Source

I'm currently developing an app for school, but I ran into problem. Couple of days ago, I made an application in webide. Developing went great and the application was successfully built. Now today, I wanted to re-run that same application but it stopped working. I made the same application with exactly the same code in Eclipse (Just copied the code from webide application) and it works great.

My program contains a table with a columnListItem press event. In the Webide, when I press it seems that the event is not executed while in the Eclipse version the event is executed.

When I look in my browser console while running the webide app I see following error: Click here for the picture.

I don't think it's necessary to put my code here, because I know it works. But maybe you guys know that there sometimes are bugs/problems in the webide?

Thanks in advance!

Answer

phil soady picture phil soady · Jan 13, 2016

do you have this reference in the index.html ?

<script src="resources/sap-ui-core.js" etc </script>

This uses a servlet to load so if that isnt running you get that error. See the web.xml file in the project for more details.

You can point the src= at the standard OPEN CDN for the library and it should work.

<script
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
</script>