本文介绍了Worklight core-web-layer.js错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我吗?
当我在Chrome,Firefox或Opera上运行我的Worklight项目时,我没有任何错误。
但是当我在IE上运行它时,我收到以下错误:

  c $ c 

对于您在Android上运行的问题,如果您是e将Worklight 6.0与一个新项目一起使用,从Worklight项目旁创建的Dojo库项目复制以下文件:

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

这些文件必须添加到您的Worklight项目的 www / dojo / nls / 目录。



除了包含 * _ ROOT.js 文件外,您还可能需要从应用程序中删除开发配置。为此,请打开控制台视图(窗口> 显示视图> 其他... > 控制台)。从控制台视图中,单击打开控制台按钮,然后从列表中选择 Dojo库请求。从Dojo Library Requests控制台中,单击查看菜单(工具栏中的三角形),然后取消选中提供库资源。之后,将应用程序构建并部署到您的仿真器或设备。


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
解决方案

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.

这篇关于Worklight core-web-layer.js错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 01:10