Não consigo executar a busca utilizando o servlet BuscaEmpresa, ao tentar acessar a URI http://localhost:8080/gerenciador/busca recebo a seguinte mensagem de erro:
HTTP Status 404 - /gerenciador/busca
type Status report
message /gerenciador/busca
description The requested resource is not available.
Apache Tomcat/7.0.73
Segue o meu código da classe BuscaEmpresa:
package br.com.alura.gerenciador.web;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns="/busca")
public class BuscaEmpresa extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
PrintWriter writer = resp.getWriter();
writer.println("<html>");
writer.println("<body>");
writer.println("Resultado da busca:<br/>");
writer.println("</body>");
writer.println("</html>");
}
}
Usando apache-tomcat-7.0.73
e `openjdk version "1.8.0_111"'