Reputation: 11
I have gone through this post to run an application in production, but facing an issue.
I have created a Worklight 6 hybrid application, listed below is a series of tasks that I performed on it.
[[2013-11-14 11:02:48] Application 'SampleBankingApp' requested a missing resource. Providing library resource: /dojoLib/toolkit/dojo/dijit/form/DateTextBox.js [2013-11-14 11:02:48] Application 'SampleBankingApp' requested a missing resource. Providing library resource: /dojoLib/toolkit/dojo/dijit/form/FilteringSelect.js [2013-11-14 11:02:48] Application 'SampleBankingApp' requested a missing resource. Providing library resource: /dojoLib/toolkit/dojo/dijit/Calendar.js]
I copied the missing files into the www folder keeping the folder structure as required, then I built and deployed the app with the 'Provide Library Resources' checked and I still get the same list of missing files in the dojo library requests console and the application also works fine.
Now I built and deployed by unchecking 'Provide Library Resources', when I tried to use the app it doesn't work, and the chrome console (where i use the mobile browser simulator) gives a series of errors like Failed to load resource: the server responded with a status of 404 (Not Found)
.
Whatever missing files it states in the dojo library requests console is in place inside the www folder, don't know whats going wrong. I am using Eclipse Juno + Worklight6 + Dojo, any help would really be appreciated.
Upvotes: 1
Views: 410
Reputation: 547
I think you may be failing on copying the resources to the correct path in the "www" folder.
For example, if you are missing /dojoLib/toolkit/dojo/dijit/form/DateTextBox.js, then you should copy that file into your_project/www/dijit/form
Upvotes: 1