当我运行项目时,我在浏览器中看到一个页面“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
我该如何解决?
答案 0 :(得分:1)
我不知道为什么,但是当我重新启动Eclipse时它就解决了。