Hi,
I have developed a simple app which runs properly on Tomcat (http://host:8080/Faqs). I decide to run this on launchpad using testResources -- which is available by calling http://host:8080/Faqs/test-resources/sap/ushell/shells/sandbox/fioriSandbox.html.
But getting below errors
2015-05-21 13:26:49 Device API logging initialized - DEVICE
2015-05-21 13:26:49 registerResourcePath ('', '../../../../../resources/') - sap.ui.ModuleSystem
2015-05-21 13:26:49 URL prefixes set to: - sap.ui.ModuleSystem
2015-05-21 13:26:49 (default) : ../../../../../resources/ - sap.ui.ModuleSystem
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
2015-05-21 13:26:49 registerResourcePath ('sap/ushell/renderers/fiorisandbox', 'http://localhost:8080/Faqs/test-resources/sap/ushell/bootstrap/../renderers/fiorisandbox/') - sap.ui.ModuleSystem
'webkitIndexedDB' is deprecated. Please use 'indexedDB' instead.
GET http://localhost:8080/Faqs/resources/sap/fiori/core-ext.js 404 (Not Found)
GET http://localhost:8080/Faqs/resources/sap/fiori/core-ext.js 404 (Not Found)
2015-05-21 13:27:03 registerResourcePath ('test/demo/FaqsDefaultApp', '/Faqs/') - sap.ui.ModuleSystem
GET http://localhost:8080/Faqs/Component-preload.js 404 (Not Found)
2015-05-21 13:27:03 registerResourcePath ('test/demo/FaqsDefaultApp', '/Faqs/') - sap.ui.ModuleSystem
GET http://localhost:8080/Faqs/resources/sap/ui/commons,%20sap/ui/table,%20sap/ui/layout/library-preload.json 404 (Not Found)
2015-05-21 13:27:03 failed to preload 'sap.ui.commons, sap.ui.table, sap.ui.layout.library-preload': Not Found - sap.ui.ModuleSystem
GET http://localhost:8080/Faqs/resources/sap/ui/commons,%20sap/ui/table,%20sap/ui/layout/library.js 404 (Not Found)
2015-05-21 13:27:03 Application initialization failed due to an Exception:
Error: failed to load 'sap/ui/commons, sap/ui/table, sap/ui/layout/library.js' from ../../../../../resources/sap/ui/commons, sap/ui/table, sap/ui/layout/library.js: 404 - Not Found
at a1 (http://localhost:8080/Faqs/resources/sap-ui-core.js:80:16196)
at Object.jQuery.sap.require (http://localhost:8080/Faqs/resources/sap-ui-core.js:80:19351)
at n.loadLibrary (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:101716)
at null.loadLibrary (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:144)
at C._loadDependencies (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:65190)
at C.init (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:60024)
at b._initCompositeSupport (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:53446)
at E.extend.constructor (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:2860)
at M.extend.constructor (http://localhost:8080/Faqs/resources/sap-ui-core.js:144:52655)
at C.extend.constructor (http://localhost:8080/Faqs/resources/sap/ui/core/library-preload.json/sap/ui/core/UIComponent.js:6:193) -
2015-05-21 13:27:03 Error - failed to load 'sap/ui/commons, sap/ui/table, sap/ui/layout/library.js' from ../../../../../resources/sap/ui/commons, sap/ui/table, sap/ui/layout/library.js: 404 - Not Found FAQs for SAP UI5 Developers
2015-05-21 13:27:03 Could not open app. Try again later. -
Uncaught TypeError: Cannot read property 'appendChild' of null
I followed documentation and performed below tasks
- Created new dynamic web app project by name appconfig and created a fioriSandboxConfig.json with below contents
{
"applications" : {
"FaqsObject-display" : {
"additionalInformation" : "SAPUI5.Component=test.demo.FaqsDefaultApp",
"applicationType" : "URL",
"url" : "/Faqs",
"description" : "Faqs"
} }
}
- Created Component.js in the rootfolder (/WebContent) of application project , with below contents
// define a root UIComponent which exposes the main view
jQuery.sap.declare("test.demo.FaqsDefaultApp.Component");
jQuery.sap.require("sap.ui.core.UIComponent");
// new Component
sap.ui.core.UIComponent.extend("test.demo.FaqsDefaultApp.Component", {
metadata : {
version : "1.0",
library : "test.demo.FaqsDefaultApp",
includes : [ ],
dependencies : {
libs : [ "sap.ui.commons", "sap.ui.table", "sap.ui.layout" ],
components : []
},
config: {
"title": "FAQs for SAP UI5 Developers",
//"resourceBundle" : "i18n/i18n.properties",
//"titleResource" : "shellTitle",
"icon" : "sap-icon://Fiori2/F0429"
}
},
createContent : function() {
return sap.ui.xmlview("test.demo.FaqsDefaultApp.faqs.FaqLists");
}
});
- I even removed script tags from index.html
I can execute all demo apps from testresource url but except my app. Please let me know if i am missing anything.
Thanks
Vikraantha