>
Boa noite
Um auxílio por favor.
Ao executar Servlet no TomCat 10 é emitida a mensagem:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
A class:
import java.io.IOException;
import java.io.PrintWriter;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
public class IndexServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) {
try {
PrintWriter out = res.getWriter();
out.println("OLÁ");
} catch (IOException e) {
}
}
public void doPost(HttpServletRequest req, HttpServletResponse res) {
}
}
A princípio a codificação está igual à aula, no entanto não acha o caminho. Estou utilizando o Eclipse 4.19 e o TomCat 10.
Saberiam dizer se e há diferença na codificação devido à versão do Eclipse ?
Oi Ulisses
Pode postar um print aqui do código e do erro?