2013-09-25 47 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
相關問題