Server Tomcat v7.0 Server at localhost failed to start
Bonsoir,
j'ai créé une simple servlet qui contient le code suivant
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| package servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class test extends HttpServlet {
public void doGet( HttpServletRequest request, HttpServletResponse
response ) throws ServletException, IOException{
}
} |
et j'ai configuré le fichier web.xml comme le suivant:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?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_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>libreservice</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>test</servlet-name>
<servlet-class>servlets.test</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>toto</url-pattern>
</servlet-mapping>
</web-app> |
Normalement dans ce cas lorsqu'on exécute le serveur , une page vide va être affichée
mais j'obtiens ce message d'erreur :
Citation:
Server Tomcat v7.0 Server at localhost failed to start
S'il vous plait, j'ai besoin de votre aide et je serai reconnaissante