错误:NOT_FOUND< ---> Google Apps Eng

时间:2011-11-02 23:05:46

标签: xml google-app-engine

我正在研究GAE。当我在当地尝试它工作正常。但是,当我部署它时,它会告诉我 错误:NOT_FOUND ......我不知道到底发生了什么。有人能帮我吗。感谢你。你可以检查一下 web.xml的设置如下:

<?xml version="1.0" encoding="utf-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    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">

    <filter>
        <filter-name>UserFilter</filter-name>
        <filter-class>com.link.UserFilter</filter-class>
    </filter>
    <filter>
        <filter-name>AdminFilter</filter-name>
        <filter-class>com.link.AdminFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>UserFilter</filter-name>
        <url-pattern>/user/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>AdminFilter</filter-name>
        <url-pattern>/admin/*</url-pattern>
    </filter-mapping>
    <servlet>
        <servlet-name>BuyServlet</servlet-name>
        <servlet-class>com.link.BuyServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>BuyPaypalServlet</servlet-name>
        <servlet-class>com.link.BuyPaypalServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>LogoutServlet</servlet-name>
        <servlet-class>com.link.LogoutServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>AddUserServlet</servlet-name>
        <servlet-class>com.link.AddUserServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>DropUserServlet</servlet-name>
        <servlet-class>com.link.DropUserServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>ModifyUserServlet</servlet-name>
        <servlet-class>com.link.ModifyUserServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>ParameterServlet</servlet-name>
        <servlet-class>com.link.ParameterServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>PaypalServlet</servlet-name>
        <servlet-class>com.paypalX.AdaptiveFnAPIServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>BuyServlet</servlet-name>
        <url-pattern>/user/buy</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>BuyPaypalServlet</servlet-name>
        <url-pattern>/user/buypaypal</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>LogoutServlet</servlet-name>
        <url-pattern>/logout</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>AddUserServlet</servlet-name>
        <url-pattern>/admin/adduser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>DropUserServlet</servlet-name>
        <url-pattern>/admin/dropuser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>ModifyUserServlet</servlet-name>
        <url-pattern>/admin/modifyuser</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>ParameterServlet</servlet-name>
        <url-pattern>/admin/setparameter</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>PaypalServlet</servlet-name>
        <url-pattern>/processPayment</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>
</web-app>

1 个答案:

答案 0 :(得分:0)

您的应用已配置为将/的请求重定向到/user/index.jsp,但您似乎没有为该网址映射处理程序。除此之外,如果没有看到您的代码,就不可能说任何有用的东西。