Worklight core-web-layer.js errors

时间秒杀一切 提交于 2019-11-26 11:40:57

问题


Can someone help me? When I run my Worklight project on Chrome, Firefox or Opera I don\'t get any errors. But when I run it on IE I get these errors:

    Error: multipleDefine 
    Error: multipleDefine 
    Error: multipleDefine 
    Error: multipleDefine 
    SCRIPT5002: Function expected 
    core-web-layer.js, line 311 character 160
    SCRIPT438: Object doesn\'t support property or method \'_eventHandler\' 
    core-web-layer.js, line 165 character 71

When I run it on Android, the Dojo functionality also doesn\'t work and I get this error:

    07-09 13:12:37.817: D/CordovaLog(7180): Error: scriptError
    07-09 13:12:37.817: E/Web Console(7180): Error: scriptError at file:///data/data/com.Klappr/files/www/default/dojo/dojo.js:21

回答1:


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.



来源:https://stackoverflow.com/questions/17546952/worklight-core-web-layer-js-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!