简体   繁体   English

运行项目GWT后,为什么会收到Service Unavailable消息?

[英]Why do I receive a Service Unavailable message after running the project GWT?

I am creating a GWT project from the GWT Material official website using maven. 我正在使用maven从GWT Material官方网站创建一个GWT项目。 I am following the tutorial offered by the site: http://gwtmaterialdesign.github.io/gwt-material-demo/#gettingstarted . 我正在关注该网站提供的教程: http//gwtmaterialdesign.github.io/gwt-material-demo/#gettingstarted Im getting this in the view page: 我在视图页面中得到这个:

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

I tried all the solution proposed here but I failed to view the project homepage. 我尝试了这里提出的所有解决方案,但我没有查看项目主页。

There is no error in the eclipse console. eclipse控制台中没有错误。 but when inspecting the home page im getting this error: 但是在检查主页时我得到了这个错误:

Voice Instead ready. 声音反而准备好了

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

after running the project in the window Developement Mode in the Jetty console next to Developement Mode i have problem with Jetty. 在开发模式旁边的Jetty控制台的窗口中的开发模式中运行项目后,我遇到了Jetty的问题。 i don't know What is jetty and what it allows to do? 我不知道什么是码头以及它允许​​做什么? Im getting this error : 我得到这个错误:

`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>`

I solved it by following the next step: 我按照下一步解决了这个问题:

1- Close Eclipse. 1-关闭Eclipse。

2- Go to user directory and delete the .m2 directory. 2-转到用户目录并删除.m2目录。

3- Open Elipse. 3-打开Elipse。

4- Right click on the project -> Run as -> maven install 4-右键单击项目 - >运行方式 - > maven install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么使用 Google Cloud Datastore API Explorer 会收到 503 Service Unavailable 错误? - Why do I get 503 Service Unavailable errors using the Google Cloud Datastore API explorer? 为什么在托管模式下运行 GWT App Engine 应用程序时出现 ClassNotPersistableException? - Why do I get ClassNotPersistableException while running GWT App Engine application in hosted mode? 使用GWT的HTTP错误503(SERVICE_UNAVAILABLE) - HTTP Error 503 (SERVICE_UNAVAILABLE) using GWT http 503错误gwt jetty服务器SERVICE_UNAVAILABLE - http 503 error gwt jetty server SERVICE_UNAVAILABLE 如何让GWT接收由Python GAE Channel API创建的令牌? - How do I get GWT to receive the token created by the Python GAE Channel API? 码头显示http错误消息503 SERVICE_UNAVAILABLE - Jetty shows http error message 503 SERVICE_UNAVAILABLE HTTP 错误 503 服务在 spring 引导项目中不可用 - HTTP ERROR 503 Service Unavailable in spring boot project 没有GAE的我如何在自己的Java项目中使用GWT Google Web Toolkit? - How do I use GWT Google Web Toolkit in my own Java project without GAE? 在运行Eclipse GWT项目时通过Hibernate连接到Hsqldb时出现问题 - Problem connecting to Hsqldb via Hibernate when running a Eclipse GWT project App Engine模块-为什么我看到有关后端的消息 - App Engine Modules - Why do I see a message about backends
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM