IBM Worklight 6.0 - Migration Issue after importing a project

被刻印的时光 ゝ 提交于 2019-12-13 04:24:04

问题


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

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

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


回答1:


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.

Does the problem occur?




回答2:


Have to use Eclipse is 4.2.2 Java Platform Enterprise Edition version but not Classic



来源:https://stackoverflow.com/questions/17279461/ibm-worklight-6-0-migration-issue-after-importing-a-project

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