on 03-07-2014 7:36 AM
Hi,
We've installed SAP NetWeaver 7.40 SP04 ABAP system. I'm trying to run basic SAPUI5 Hello World app on the system but I'm getting http 404 for sap-ui-core.js as shown below :
I cheked the UI Add-on and SAP_UI 7.40 0007 is installed on the system.
I'm including the UI5 library with the code :
<script id="sap-ui-bootstrap"
src="resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m">
</script>
Anyone has an idea what could be the problem ? I'm actually trying to configure Fiori on this system and having the same problem on Fiori apps.
Thanks.
Hi,
This is the relative path of sap-ui-core.js on ABAP server.
src="/sap/public/bc/ui5_ui5/resources/sap-ui-core.js"
Try with this as well. also please check in MIME repository that this file is available under path
sap->public->bc->ui5->libraries->ver-><version_folder>->com.sap.ui5.core->META-INF->resources->sap-ui-core.js
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandra,
Thanks for giving me the light. When I looked at the MIME repository, there was 2 UI5 folder under the path sap/public/bc. One is uppercase and the other is lowercase. Lowercase one is created by my colleague (I don't know why!) and after deleting this empty folder everyting is started to work!
Thanks again...
Abdul.
You need to have "resources" folder in your code base. If you can't find one, then you need to manually copy-paste it from SAPUI5 SDK.
In order to make it work without copy-pasting the resources folder, you can use SAPUI5 CDN link. Replace the line:
src="resources/sap-ui-core.js"
With:
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
Reference:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abdulbasit,
Please change below line
src="resources/sap-ui-core.js"
to -
src="/sapui5/resources/sap-ui-core.js"
deploy and check please revert in case any doubt.
Regards
Jeetendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.