2017-06-24 81 views
1

我正在使用maven從GWT Material官方網站創建一個GWT項目。我正在關注該網站提供的教程:http://gwtmaterialdesign.github.io/gwt-material-demo/#gettingstarted。我在查看頁面得到這個:運行項目GWT後,爲什麼會收到Service Unavailable消息?

HTTP ERROR: 503 
Problem accessing /index.html. Reason: 
Service Unavailable 
Powered by Jetty:// 

我試過這裏提出的所有解決方案,但我沒有查看項目主頁。

在eclipse控制檯中沒有錯誤。但當檢查主頁即時得到這個錯誤:

聲音而不是準備好。

content.js:29 Object 
favicon.ico Failed to load resource: the server responded with a status of 503 (Service Unavailable) 
    enter code here 

在碼頭控制檯窗口發展論壇模式下運行該項目 旁邊發展論壇模式 後,我有問題,碼頭。我不知道 什麼是碼頭,它允許做什麼?即時得到這個錯誤:

`00:00:16,662 [WARN] Failed startup of context [email protected]{/,file:/C:/Users/Mm/eclipse-workspace/com-gwtmaterial-tutorial/target/com-gwtmaterial-tutorial-1.0-SNAPSHOT/,STARTING}{C:\Users\Mm\eclipse-workspace\com-gwtmaterial-tutorial\target\com-gwtmaterial-tutorial-1.0-SNAPSHOT} 
<pre>java.util.zip.ZipException: invalid entry size (expected 4178 but got 10926 bytes) 
    at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:384) 
    at java.util.zip.ZipInputStream.read(ZipInputStream.java:196) 
    at java.util.jar.JarInputStream.read(JarInputStream.java:207) 
    at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140) 
    at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:118) 
    at java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:142) 
    at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:179) 
    at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:915) 
    at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:831) 
    at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163) 
    at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:548) 
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) 
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) 
    at java.lang.Thread.run(Thread.java:745)</pre>` 
+1

看起來好像你有一個損壞的JAR。我首先嚐試清理項目('mvn clean'),以防在本地複製過程中被損壞;如果沒有解決這個問題,那麼刪除Maven本地倉庫(用戶主文件夾中的'.m2/repository')重新下載依賴關係。您可能需要調試devmode進程以查看哪個JAR確實導致了錯誤。 (順便說一下,Jetty是用於在devmode中爲您的web應用程序提供服務的Web服務器) –

+0

我做了mvn clean,但沒有工作。然後我刪除存儲庫,並做mvn安裝即時獲取BUILD FAILURE –

+0

現在該做什麼? –

回答

0

我解決它按照下一步:

1-關閉的Eclipse。

2-進入用戶目錄並刪除.m2目錄。

3-打開Elipse。

4-右鍵單擊該項目 - >運行方式 - > maven install

相關問題