Boa tarde a todos.
Estou dandos os primeiros passos com Servlet. Tudo ia muito bem enquanto eu usuava o bloco de notas para programar. Fazia tudo na mão. Depois de adquirir confiança, decidi usuar o eclipse para andar mais, não deu mais nada certo. Não consegui compilar uma única linha. A unica coisa que consigo é o erro.
HTTP Status 404 - /DBServlet2e/servlet/dbServlet2e.DBServlet2e
--------------------------------------------------------------------------------
type Status report
message /DBServlet2e/servlet/dbServlet2e.DBServlet2e
description The requested resource (/DBServlet2e/servlet/dbServlet2e.DBServlet2e) is not available.
---------------------------------------
Como ajustar isto no Eclipse?
Segue abaixo o arquivo 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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 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>MeuProjeto</display-name>
<servlet>
<servlet-name>sDados</servlet-name>
<servlet-class>dbServlet2e</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>sDados</servlet-name>
<url-pattern>/servidor2</url-pattern>
</servlet-mapping>
</web-app>
Muuuito obrigado!