I'm trying to run my login.jsp on Tomcat in Eclipse and get a 404 error. I excluded /WEB-INF from the url and got a different result! The browser loaded a line of code in my LoginServlet: Served at: /FirstDynamicWebProject", which is the parent folder for login.jsp. So it seems like Tomcat is executing my project, but I can't figure out what the problem might be then.
Asked
Active
Viewed 16 times
0
-
1Where is your JSP file, and are any URIs mapped for it in the `web.xml`? – nitind Oct 17 '21 at 01:15
-
Files in the `/WEB-INF` directory are not (directly) accessing from the web. It's a security feature. – Piotr P. Karwasz Oct 17 '21 at 06:53
-
Please provide enough code so others can better understand or reproduce the problem. – Community Oct 17 '21 at 09:18