IBM Worklight 6.0 - Migration Issue after importin

2019-09-08 03:23发布

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).

2条回答
Luminary・发光体
2楼-- · 2019-09-08 03:35

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

查看更多
贼婆χ
3楼-- · 2019-09-08 03:48

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?

查看更多
登录 后发表回答