IBM Worklight应用程序构建器错误

时间:2013-09-25 09:54:28

标签: ios eclipse macos ibm-mobilefirst

我在mac mini上使用 eclipse juno 4.2.1 IBM worklight 6.0 。从昨天开始,我正在尝试构建和部署我的应用程序,但它给了我“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. 

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:1)

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

复制/粘贴:

  

请尝试查找您是否安装了apache commons IO   Eclipse插件目录。这是冲突的根源。

     

如果可以,请尝试:

     
      
  1. 停止Eclipse
  2.   
  3. 将apache commons IO移出插件目录
  4.   
  5. 启动Eclipse,然后关闭它
  6.   
  7. 将公共IO移回插件目录
  8.   
  9. 启动Eclipse
  10.