on 10-21-2013 4:10 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, I suppose your backend system is a ABAP server, right?
Please confirm, that the UI Add On for Netweaver is installed:
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
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.