【问题标题】:HTTP Error 503 (SERVICE_UNAVAILABLE) using GWT使用 GWT 的 HTTP 错误 503 (SERVICE_UNAVAILABLE)
【发布时间】:2013-07-19 17:45:38
【问题描述】:

当我运行项目时,我在浏览器中看到一个带有“HTTP 错误:503 / 访问 /WhereIsMatch.html 时出现问题。原因:SERVICE_UNAVAILABLE”的页面

这是我的 web.xml 文件:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">

    <!-- Servlets -->
    <welcome-file-list>
        <welcome-file>WhereIsMatch.html</welcome-file>
    </welcome-file-list>

    <servlet>
        <servlet-name>matchServlet</servlet-name>
        <servlet-class>com.kernapps.whereismatch.server.rpc.MatchServiceImpl</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>matchServlet</servlet-name>
        <url-pattern>/whereismatch/match</url-pattern>
    </servlet-mapping>

    <!-- Default page to serve -->

</web-app>

并且我把对应的java注解放在了MatchService类上:

package com.kernapps.whereismatch.client.rpc;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.kernapps.whereismatch.shared.domain.Match;
import com.kernapps.whereismatch.shared.domain.Matches;

@RemoteServiceRelativePath("match")
public interface MatchService extends RemoteService {
    public Match getMatch(int id);

    public Matches getMatchesCurrentRound();

}

控制台放置:

Initializing App Engine server
19-jul-2013 19:29:10 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed D:\Desarrollo\AISS\WhereIsMatch\war\WEB-INF/appengine-web.xml
19-jul-2013 19:29:10 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed D:\Desarrollo\AISS\WhereIsMatch\war\WEB-INF/web.xml
19-jul-2013 19:29:10 com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'D:\Aplicaciones\eclipse Kepler\plugins\com.google.appengine.eclipse.sdkbundle_1.8.1.1\appengine-java-sdk-1.8.1.1\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'D:\Desarrollo\AISS\WhereIsMatch\war\WEB-INF\appengine-web.xml'
19-jul-2013 19:29:11 com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
19-jul-2013 19:29:13 com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
19-jul-2013 19:29:35 com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@0.0.0.0:8888
19-jul-2013 19:29:35 com.google.appengine.tools.development.AbstractServer startup
INFO: Server default is running at http://localhost:8888/
19-jul-2013 19:29:35 com.google.appengine.tools.development.AbstractServer startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
19-jul-2013 19:29:35 com.google.appengine.tools.development.DevAppServerImpl start
INFO: Dev App Server is now running

我该如何解决?

【问题讨论】:

  • 你要测试应用的哪个 url?

标签: java google-app-engine gwt gwt-rpc


【解决方案1】:

不知道为什么,重启Eclipse后就解决了。

【讨论】:

  • 我面临同样的问题,但我找不到解决方案。你能帮帮我吗?
猜你喜欢
  • 2012-08-17
  • 2014-11-08
  • 1970-01-01
  • 2015-07-23
  • 1970-01-01
  • 1970-01-01
  • 2012-10-23
  • 2012-12-09
  • 1970-01-01
相关资源
最近更新 更多