Worklight core-web-layer.js errors

Is your core-web-layer.js the one that was created during project creation?

For your issue with running on Android, if you’re using Worklight 6.0 with a new project, copy the following files from the Dojo Library project that was created alongside the Worklight project:

toolkit/dojo/dojo/nls/core-web-layer_ROOT.js
toolkit/dojo/dojo/nls/mobile-ui-layer_ROOT.js

These files then must be added to your Worklight project’s www/dojo/nls/ directory.

In addition to including the *_ROOT.js files, you may also need to remove the development configuration from the application. To do this, open the Console view (Window > Show View > Other… > Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources. After this, build and deploy your application to your emulator or device.

Leave a Comment