将项目部署到谷歌应用引擎成功,但访问网址时显示错误NOT_FOUND

时间:2016-09-04 21:51:16

标签: java eclipse google-app-engine eclipse-mars

我正在使用带谷歌插件的eclipse火星将项目部署到谷歌应用引擎。我的应用程序可以在没有问题的情当我将项目部署到我在appspot.com上创建的项目时,确保项目ID设置正确,它可以成功部署而不会出现问题。但是,访问项目id.appspot.com会显示错误NOT_FOUND。

感谢任何帮助。

------------部署前端------------

Preparing to deploy:
    Created staging directory at: 'C:\Users\REDACTED\AppData\Local\Temp\appcfg7951301900869241602.tmp'
    Scanning for jsp files.
    Compiling jsp files.
    Scanning files on local disk.
    Initiating update.
    Cloning 3 static files.
    Cloning 36 application files.

Deploying:
    Uploading 1 files.
    Uploaded 1 files.
    Sending batch containing 1 file(s) totaling 1KB.
    Initializing precompilation...
    Deploying new version.
    Closing update: new version is ready to start serving.
    Uploading index definitions.

Deployment completed successfully

的web.xml

<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5">

</web-app>
    <servlet>
        <servlet-name>Guestbook</servlet-name>
        <servlet-class>guestbook.GuestbookServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Guestbook</servlet-name>
        <url-pattern>/guestbook</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>guestbook.jsp</welcome-file>
    </welcome-file-list>

    <servlet>

        <servlet-name>sign</servlet-name>

        <servlet-class>guestbook.SignGuestbookServlet</servlet-class>

    </servlet>

    <servlet-mapping>

        <servlet-name>sign</servlet-name>

        <url-pattern>/sign</url-pattern>

    </servlet-mapping>
</web-app>

日志:

18:38:21.349
GET
404
204 B
12 ms
Chrome 53
/
 98.198.70.88 - - [04/Sep/2016:18:38:21 -0400] "GET / HTTP/1.1" 404 204 - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36" "zipingguestbook.appspot.com" ms=12 cpu_ms=15716 cpm_usd=2.2798e-8 loading_request=0 instance=00c61b117cb25c5a8704a570f125a8aecbe66e4a7db0d1d95155df4b6198e0 app_engine_release=1.9.44 trace_id=0764e930015bad0d5bab7e025dd48a51
{
 metadata: {…}   
 protoPayload: {…}   
 insertId: "2016-09-04|15:38:26.362743-07|10.106.149.194|-1325158672"   
 log: "appengine.googleapis.com/request_log"   
 httpRequest: {…}   
 operation: {…}   
}

19:19:57.220
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

0 个答案:

没有答案