cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to locate sap-ui-core.js

Former Member
0 Kudos

I'm learning SAPUI5 and going through the tutorial on HANA Academy, and encountered an error while doing so. I have created a simple hello world program and while the code runs, i get a blank screen on the browser. When i check the firebug console, i get the following error message:

"NetworkError: 404 Not Found - http://****.***.com:8000/sap/ui/1/resources/sap-ui-core.js" (****.***.com is the server name)

I checked my code and in the index.html file I've identical code to the one in the tutorial:

<script src="/sap/ui5/1/resources/sap-ui-core.js" id="sap-ui-bootstrap"

          data-sap-ui-libs="sap.ui.commons"

          data-sap-ui-theme="sap_goldreflection">

</script>

What is the issue?

Thank you,

salman


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I was able to fix the issue by reinstalling the UI5 libraries. Earlier i had installed from the evaluation demo pack. I reinstalled it by downloading the libraries from https://tools.hana.ondemand.com/juno into the HANA Studio. I'm not sure, what was different between the two libraries, as when i ran simple code on top of the demo pack, it worked fine.

Thanks for all the help.

Regards,

Salman

Answers (3)

Answers (3)

former_member184238
Participant

Hi,

Please try like this.

<script src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"

         id="sap-ui-bootstrap" 

        data-sap-ui-libs="sap.ui.commons" 

        data-sap-ui-theme="sap_goldreflection"> 

</script> 

Thanks&Regards

Sridevi

qmacro
Developer Advocate
Developer Advocate
0 Kudos

This might sound like an odd question, but who installed the HANA / XS / SAPUI5 libs on your server? They (theoretically) could be installed on any path, so I would suggest you check with them. Or are you using a public server?

Former Member
0 Kudos

Hi,

seems like the path to the SAPUI5 core libraries has changed. Please try

<script src="./resources/sap-ui-core.js" id="sap-ui-bootstrap"

          data-sap-ui-libs="sap.ui.commons"

          data-sap-ui-theme="sap_goldreflection">

</script>

or

<script src="resources/sap-ui-core.js" id="sap-ui-bootstrap"

          data-sap-ui-libs="sap.ui.commons"

          data-sap-ui-theme="sap_goldreflection">

</script>

instead.

Regards

Stefan

Former Member
0 Kudos

Thanks Stefan, but the solution is not working. I tried both your suggestions but i still get the same error message.

I've set the src path as "/sap/ui5/1/resources/sap-ui-core.js" but in the error message it is searching for "/sap/ui/1/resources/sap-ui-core.js"

Thanks,

Salman

Former Member
0 Kudos

So, I suppose your backend system is a ABAP server, right?

Please confirm, that the UI Add On for Netweaver is installed:

http://scn.sap.com/community/ui-technology/blog/2012/09/04/introducing-the-new-ui-add-on-for-sap-net...

This Add On also brings the SAPUI5 runtime core libraries on the ABAP backend system.

For my system here, the core libraries are then available under

http://myserver:8000/sap/bc/ui5_ui5/sap/z_smartbanf/resources/sap-ui-core.js

Regards

Stefan

Former Member
0 Kudos

No Stefan, we are using HANA server in the backend. I want to access the databases present in the HANA databases and present the data using SAPUI5. No ABAP involved.

Thanks,

Salman

Former Member
0 Kudos

Sorry, pasted a wrong path above. But actually DJ Adams is right: Check if the SAPUI5 libraries are installed on the server and in which path.

Former Member
0 Kudos

Hello Stefan,

The library path has been changed in my server.

I have used the path "./resources/sap-ui-core.js" and it worked for me.

Before It was "resources/sap-ui-core.js" and was working but suddenly it stopped working.


Thanks for solution.

Samudra