Esta aparecendo esse erro quando vou executar a servlet:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
<?xml version="1.0" encoding="UTF-8"?>
<web-app >
<servlet>
<servlet-name>PrimeiraServlet</servlet-name>
<servlet-class>Servlets.Ola</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PrimeiraServlet</servlet-name>
<url-patern>/oi</url-patern>
</servlet-mapping>
</web-app>
package Servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Ola extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
// TODO Auto-generated method stub
resp.setContentType("text/html");
PrintWriter writer = resp.getWriter();
writer.println("<html> <body>");
writer.println("Primeira Servlet");
writer.println("</html></body>");
}
}
insira seu código aqui