这看起来很奇怪,我刚刚创建了一个新的应用程序(wineathome),并从我的其他应用程序(日记本)中借用了一堆旧代码。
它编译得很好,我已经清理了两个项目,从头开始构建甚至退出eclipse并重新启动PC,但它仍然发生...我收到一个错误(见下文)告诉我有“没有文件找到:/ diarybooker / contact“这很明显,我从我的wineathome应用程序中删除了所有对diarybooker的引用。我甚至对所有文件进行了文本搜索,并且没有任何内容。从哪个方面来寻找它,更重要的是如何阻止这个错误?
错误消息下面是我的war / WEB-INF / web.xml文件的内容......
Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Successfully processed C:\eclipse\WineAtHome\war\WEB-INF/appengine-web.xml
Successfully processed C:\eclipse\WineAtHome\war\WEB-INF/web.xml
The server is running at http://localhost:8888/
[WARN] No file found for: /diarybooker/contact
[WARN] No file found for: /diarybooker/contact
[WARN] No file found for: /diarybooker/contact
[WARN] No file found for: /diarybooker/contact
[WARN] No file found for: /diarybooker/contact
[WARN] No file found for: /diarybooker/contact
[WARN] No file found for: /diarybooker/contact
Web / WEB_INF / web.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Servlets -->
<servlet>
<servlet-name>ContactService</servlet-name>
<servlet-class>com.wineathome.server.S_ContactServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ContactService</servlet-name>
<url-pattern>/wineathome/contact</url-pattern>
</servlet-mapping>
<!-- Default page to serve -->
<welcome-file-list>
<welcome-file>WineAtHome.html</welcome-file>
</welcome-file-list>
</web-app>