【问题标题】:Why do I receive a Service Unavailable message after running the project GWT?为什么我在运行项目 GWT 后会收到 Service Unavailable 消息?
【发布时间】:2017-11-27 23:18:50
【问题描述】:

我正在使用 maven 从 GWT Material 官方网站创建一个 GWT 项目。我正在关注该网站提供的教程:http://gwtmaterialdesign.github.io/gwt-material-demo/#gettingstarted。我在视图页面中得到了这个:

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

运行项目后 在开发模式旁边的 Jetty 控制台中的开发模式窗口中 我有码头问题。我不知道 什么是码头,它允许做什么?我收到此错误:

`00:00:16,662  [WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload@3772b95a{/,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>`

【问题讨论】:

  • 您的 JAR 似乎已损坏。我首先尝试清理项目(mvn clean),以防它在本地复制期间被损坏;如果这不能解决问题,则删除 Maven 本地存储库(用户主文件夹中的.m2/repository)以重新下载依赖项。您可能想要调试 devmode 进程以查看究竟是哪个 JAR 导致了错误。 (顺便说一句,Jetty 是用于在开发模式下为您的 web 应用程序提供服务的 web 服务器)
  • 我做了 mvn clean 但没用。然后我删除了存储库并执行 mvn install im getting BUILD FAILURE
  • 现在该做什么?
  • 我正在关注网站提供的教程:[link] gwtmaterialdesign.github.io/gwt-material-demo/#gettingstarted
  • 您能否提供更多细节,而不仅仅是构建失败? @ThomasBroyer 是对的,存储库目录清理应该可以解决您的问题。

标签: google-app-engine gwt jetty gwt-rpc gwt-material-design


【解决方案1】:

我通过下一步解决了它:

1- 关闭 Eclipse。

2- 进入用户目录,删除.m2目录。

3- 打开椭圆。

4-右键项目->运行方式->maven安装

【讨论】:

    猜你喜欢
    • 2018-06-30
    • 2019-08-11
    • 1970-01-01
    • 1970-01-01
    • 2015-01-25
    • 1970-01-01
    • 2016-07-02
    • 2011-08-07
    • 1970-01-01
    相关资源
    最近更新 更多