2013-09-25 48 views
0

我正在使用eclipse juno 4.2.1IBM worklight 6.0在我的Mac mini上。自从昨天我试图构建和部署我的应用程序,但它给了我“Worklight应用程序构建器”错误。IBM Worklight应用程序构建器错误

这里是日志:

An internal error occurred during: "Worklight application builder". 
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 o/filefilter/IOFileFilter;Lorg/apache/commons/io/filefilter/IOFileFilter;)Ljava/util/Iterator; used in the signature 


and console shows this message : 

[2013-09-25 15:18:46]    Starting build process: application 'TestApp', all environments 
[2013-09-25 15:18:46]    com.worklight.shared.common.messages:tgn309.trigyn.com: tgn309.trigyn.com: nodename nor servname provided, or not known 
            java.net.InetAddress.getLocalHost(InetAddress.java:1466) 
            com.worklight.common.util.GeneralUtil.scanIPAddresses(GeneralUtil.java:581) 
            com.worklight.common.util.GeneralUtil.scanIPAddresses(GeneralUtil.java:549) 
            com.worklight.common.util.GeneralUtil.getIPscanResults(GeneralUtil.java:642) 
            com.worklight.studio.plugin.utils.WSTServers.getServerHost(WSTServers.java:174) 
            com.worklight.studio.plugin.utils.WSTServers.getServerURL(WSTServers.java:661) 
            com.worklight.studio.plugin.launch.build.apps.WorkspaceApplicationBuilder.buildApplication(WorkspaceApplicationBuilder.java:325) 
            com.worklight.studio.plugin.launch.build.apps.WorkspaceApplicationBuilder.runInWorkspace(WorkspaceApplicationBuilder.java:158) 
            org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) 
            org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) 
[2013-09-25 15:18:46] FWLPL0010W: "localhost" was detected from the target server configuration. Using the primary IP address of the host machine, 10.30.1.102, to build the Worklight application(s). Consider using a fully qualified hostname (avoid using "localhost") or a valid IP address instead. The value can be modified by opening the configuration editor of Worklight Development Server from the "Servers" view. 

任何帮助,将不胜感激。

+0

Worklight不支持Eclipsr 4.2.1,请先升级到Eclipse 4.2.2并在“新建”工作区中重试。 –

+0

我只是重新检查了我的Eclipse版本和它的4.2.2,但仍然在上面发布了错误。 – Poonam

+0

确保您使用Eclipse Juno 4.2.2,即“用于Java EE开发人员的Eclipse IDE”或“Eclipse Classic”版本。另外,什么版本的Worklight 6.0? Developer Edition(在eclipse中运行的服务器)或消费者/企业版(在eclipse中运行的服务器,或者独立服务器 - 如果是后者,服务器是什么?)。 – Barbara

回答

1

尝试在以下答案中给出的建议,因为它似乎根据你的问题的错误有点关系:IBM Worklight 6.0 - Migration Issue after importing a project

复制/粘贴:

请尽量找到,如果你有Apache的百科全书IO安装在您的 Eclipse插件目录中。这是冲突的根源。

如果可以,请尝试:

  1. 停止了Eclipse
  2. 移动apache的公地IO出来的插件目录
  3. 启动Eclipse,然后将其关闭
  4. 移动公地IO回到插件目录
  5. 启动Eclipse
相关问题