使用Eclipse和Tomcat的404错误

时间:2018-07-12 15:16:10

标签: java xml eclipse tomcat

尝试注册时出现这种错误:

这是我的:

  

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>Hotelbooking</display-name>
  <servlet>
    <servlet-name>Hotelbooking</servlet-name>
    <servlet-class>hotel.Hotelbooking</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Hotelbooking</servlet-name>
    <url-pattern>/hotelbooking</url-pattern>
  </servlet-mapping>
  <display-name>Login</display-name>
  <servlet>
    <servlet-name>Login</servlet-name>
    <servlet-class>hotel.Login</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/login</url-pattern>
  </servlet-mapping>
  <display-name>Logout</display-name>
  <servlet>
    <servlet-name>Logout</servlet-name>
    <servlet-class>hotel.Logout</servlet-class>
  </servlet>
  <display-name>Registration</display-name>
  <servlet>
    <servlet-name>Registration</servlet-name>
    <servlet-class>hotel.Registration</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Registration</servlet-name>
    <url-pattern>/registration</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>home.html</welcome-file>
  </welcome-file-list>
</web-app>
  

HTTP状态404 –找不到

     

类型状态报告

     

消息/ HotelReservation / Registration

     

说明原始服务器未找到当前表示   目标资源或不愿意透露其存在。

myProject

0 个答案:

没有答案