简体   繁体   English

谷歌应用引擎:错误:NOT_FOUND

[英]google app engine: Error: NOT_FOUND

The app was running well. 该应用程序运行良好。 But after we deployed the version 4, it's showing this error: 但是在我们部署版本4之后,它显示了这个错误:

Error: NOT_FOUND 错误:NOT_FOUND

No other message. 没有其他消息。

You can see it here . 你可以在这里看到它。 While deploying eclipse gives a successful message: Task7 successfully deployed to Google App Engine 虽然部署eclipse会给出成功的消息: Task7已成功部署到Google App Engine

All the previous versions still run well. 所有以前的版本仍然运行良好。 The local version also runs okay. 本地版本运行正常。 Tried to find similar problems and found a few ( 1 , 2 , 3 ) but none of them have any useful solutions. 试图寻找类似的问题,发现了几个( 123 ),但他们都没有任何有用的解决方案。

I don't know whether the web.xml would help to figure out the solution but I am giving it here. 我不知道web.xml是否有助于找出解决方案,但我在这里给出它。 Although I checked and found out the web.xml in the previous version (that runs well) and this one is similar. 虽然我检查并发现了以前版本中的web.xml(运行良好),但这个类似。

<?xml version="1.0" encoding="utf-8" standalone="no"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <servlet>
        <servlet-name>controller</servlet-name>
        <servlet-class>ebiz.pbj.task7.controller.Controller</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>controller</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>controller</servlet-name>
        <url-pattern>    /start                   </url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>    start   </welcome-file>

    </welcome-file-list>
 <servlet>
  <servlet-name>SystemServiceServlet</servlet-name>
  <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
  <init-param>
   <param-name>services</param-name>
   <param-value/>
  </init-param>
 </servlet>
 <servlet-mapping>
  <servlet-name>SystemServiceServlet</servlet-name>
  <url-pattern>/_ah/spi/*</url-pattern>
 </servlet-mapping>
 <filter>
        <filter-name>ObjectifyFilter</filter-name>
        <filter-class>com.googlecode.objectify.ObjectifyFilter</filter-class>
</filter>
<filter-mapping>
        <filter-name>ObjectifyFilter</filter-name>
        <url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>

If you need any other code excerpts please let me know and I'll edit my question. 如果您需要任何其他代码摘录,请告诉我,我将编辑我的问题。

Really confused about what went wrong suddenly. 对于突然出现的问题真的很困惑。 Any help would be welcomed. 任何帮助都会受到欢迎。 Thanks. 谢谢。

I think I should share my findings in case someone else gets into the same problem. 我想我应该分享我的发现,以防其他人遇到同样的问题。

This might not be the only cause of the problem because 404: NOT_FOUND can happen for various reasons but this is one of the reasons and people should be aware of it. 这可能不是问题的唯一原因,因为404:NOT_FOUND可能由于各种原因而发生,但这是其中一个原因,人们应该意识到这一点。

The naming of the jsp files are case sensitive . jsp文件的命名区分大小写 In the controller, we have codes like this : 在控制器中,我们有这样的代码:

if (errors.size() != 0) 
{ return "login.jsp"; }

but our login.jsp was mistakenly named as Login.jsp - so it could not find it. 但我们的login.jsp被错误地命名为Login.jsp - 所以它无法找到它。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM