I wrote a simple SAPUI5 Application and deployed it on our ABAP Server with help of this blog entry: https://blogs.sap.com/2013/06/15/how-to-deploy-and-run-sapui5-application-on-abap-server/. When I try to call the Application in my browser I get the following Error while it's working fine when the Application is running on Tomcat: Uncaught ReferenceError: hendrik is not defined
I guess it has something to do with the namespace for the resources but it don't really understand it. Here is the Code of my index.html:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-compatVersion="edge"
data-sap-ui-async="true"
data-sap-ui-resourceroots='{
"hendrik.odatabench" : "./"
}'
data-sap-ui-oninit="module:hendrik/odatabench/index">
</script>
<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
I hope you can help me with this.
Thanks, Hendrik.