Google app engine googleapp引擎hello world 500服务器错误?
尝试googleapp引擎的hello world教程。但当我尝试使用部署的应用程序时,会出现500服务器错误Google app engine googleapp引擎hello world 500服务器错误?,google-app-engine,Google App Engine,尝试googleapp引擎的hello world教程。但当我尝试使用部署的应用程序时,会出现500服务器错误 http://chemstest.appspot.com/ 索引工作,但是servlet给了我错误。它是用java编写的。我在web.xml中看到了一些关于大小写错误的信息,但是app name和java类都是用小写字母命名的 servlet: package com.chems.hellogoogleapp; import java.io.IOException; import
http://chemstest.appspot.com/
索引工作,但是servlet给了我错误。它是用java编写的。我在web.xml中看到了一些关于大小写错误的信息,但是app name和java类都是用小写字母命名的
servlet:
package com.chems.hellogoogleapp;
import java.io.IOException;
import javax.servlet.http.*;
@SuppressWarnings("serial")
public class hellogoogleappServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, James");
}
}
web.xml:
<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<servlet>
<servlet-name>hellogoogleapp</servlet-name>
<servlet-class>com.chems.hellogoogleapp.hellogoogleappServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>hellogoogleapp</servlet-name>
<url-pattern>/hellogoogleapp</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
Hellogoglapp
com.chems.hellogooglapp.hellogooglappservlet
Hellogoglapp
/Hellogoglapp
index.html
appengine xml:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>chemstest</application>
<version>1</version>
<!--
By default, App Engine sends requests serially to a given web server.
To allow App Engine to send multiple requests in parallel specify:
<threadsafe>true</threadsafe>
-->
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
</appengine-web-app>
化学测试
1.
希望是一个容易解决的问题?错误:未找到请求的URL/Hellogoglapp在此服务器上未找到。这只是因为我尝试使用所有大写字母H。两种方法都相同:(所以这可能不是一个容易解决的问题?服务器端日志中有任何内容吗?我修复了这个问题,罗杰,我不记得是什么导致了问题。一些基本的问题我错过了。