简体   繁体   中英

Unable to deploy app on google app engine using jetty:“HTTP ERROR 404 Pblm accessing /.Reason: not found”

Ive bee trying to set up a sample 'todo' google app engine example that uses Java, using an article I found here .

However, when I try to run the application locally, and check the localhost:8888 address I get the following error:

HTTP ERROR: 404

Problem accessing /. Reason:

    NOT_FOUND
Powered by Jetty://

I've double checked my appengine-web.xml and the web.xml. But cant seem to figure out where Im going wrong.

Links: Appengine-web.xml .
web.xml

Your appengine-web.xml and web.xml seem correct, but in your web.xml there is:

<servlet-class>com.test.todo.dao..ServletRemoveTodo</servlet-class>

Did you realise these 2 dots? I think that's the problem. The server can't find the servlet and throws NOT FOUND error.

It should be:

<servlet-class>com.test.todo.dao.ServletRemoveTodo</servlet-class>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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