Me marca error 404 al querer entrar a la lista de empresas
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="6.0">
<display-name>gerenciador</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.jsp</welcome-file>
<welcome-file>default.htm</welcome-file>
</welcome-file-list>
<servlet>
<description></description>
<display-name>NuevaEmpresaServlet</display-name>
<servlet-name>NuevaEmpresaServlet</servlet-name>
<servlet-class>com.alura.gerenciador.servlet.NuevaEmpresaServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>NuevaEmpresaServlet</servlet-name>
<url-pattern>/nuevaEmpresa</url-pattern>
</servlet-mapping>
<servlet>
<description></description>
<display-name>ListaEmpresasServlet</display-name>
<servlet-name>ListaEmpresasServlet</servlet-name>
<servlet-class>com.alura.gerenciador.servlet.ListaEmpresasServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ListaEmpresasServlet</servlet-name>
<url-pattern>/listaEmpresas</url-pattern>
</servlet-mapping>
</web-app>
http://localhost:8080/gerenciador/listaEmpresas
package com.alura.gerenciador.servlet;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
public class ListaEmpresasServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
DB baseDeDatos = new DB();
List<Empresa> listaEmpresas = baseDeDatos.getEmpresas();
PrintWriter out = response.getWriter();
out.println("<html><body>");
out.println("<ul>");
for (Empresa empresa : listaEmpresas) {
out.println("<li>" + empresa.getNombre() + "</li>");
}
out.println("<body></html>");
}
}