IBM Worklight 6.0 - 导入项目后的迁移问题 [英] IBM Worklight 6.0 - Migration Issue after importing a project

查看:230
本文介绍了IBM Worklight 6.0 - 导入项目后的迁移问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到Worklight 6.0版。甚至从新版本6.0网站加载示例应用程序并得到以下异常:

Update to Worklight version 6.0. Even load sample apps from new version 6.0 web site and get this exception like this:


在升级Worklight项目期间发生内部错误。
加载器约束违规:解析方法时
org.apache.commons.io.FileUtils.iterateFiles(Ljava / io / File; Lorg / apache / commons / io / filefilter / IOFileFilter; Lorg / apache /公共/ IO /的FileFilter / IOFileFilter;)Ljava / util的/迭代;

当前类的类加载器(
org / eclipse / osgi / internal / baseadaptor / DefaultClassLoader的实例),com / worklight / builder / skins / impl / SkinBuilderImpl和
类加载器(
org / eclipse / osgi / internal / baseadaptor / DefaultClassLoader的实例)用于已解析的
类,org / apache / commons / io / FileUtils,具有不同的Class对象
对于
签名中使用的org / apache / commons / io / filefilter / IOFileFilter类型

An internal error occurred during: "Upgrade Worklight Projects". loader constraint violation: when resolving method "org.apache.commons.io.FileUtils.iterateFiles(Ljava/io/File;Lorg/apache/commons/io/filefilter/IOFileFilter;Lorg/apache/commons/io/filefilter/IOFileFilter;)Ljava/util/Iterator;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, com/worklight/builder/skins/impl/SkinBuilderImpl, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/apache/commons/io/FileUtils, have different Class objects for the type org/apache/commons/io/filefilter/IOFileFilter used in the signature

所有应用都不能在新的6.0中构建和部署(使用JDK 1.6 / 1.7,Eclipse 4.2.2)。

None of the apps could be built and deployed in new 6.0 (Tried With JDK 1.6/1.7, Eclipse 4.2.2).

推荐答案

请尝试查找如果您在Eclipse插件目录中安装了apache commons IO。
这是冲突的根源。
如果可以,请尝试:
1.停止Eclipse
2.将apache commons IO移出插件dir
3.启动Eclipse,然后关闭它。
4.将公共IO移回插件目录。
5.启动Eclipse。

Please try to find if you have apache commons IO installed in your Eclipse plugin directory. That's the source of the conflict. If you can, please try to: 1. stop the Eclipse 2. move the apache commons IO out of the plugin dir 3. start Eclipse, then close it. 4. move the commons IO back into the plugin dir. 5. Start Eclipse.

问题是否发生?

这篇关于IBM Worklight 6.0 - 导入项目后的迁移问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆