---
title: "Comment by Babatunde Ayinla on \"How to create Java Servlet with Tomcat and Maven in VS Code.\" | Hashnode"
description: "I have been getting error 404 at my final step. I guess the issue is the path to my servlet when tomcat is trying to reference it. It does not visit the directo"
url: "https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0/comment/628d004cb4bd016fc9a31b9a"
---

[Discussion](https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0)

Comment [How to create Java Servlet with Tomcat and Maven in VS Code.](https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0)

[Babatunde Ayinla](https://hashnode.com/@ayinlab)

[May 24, 2022](https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0/comment/628d004cb4bd016fc9a31b9a)

I have been getting error 404 at my final step. I guess the issue is the path to my servlet when tomcat is trying to reference it. It does not visit the directory in the browser url. How do I specify the path?

[Gabriel Rogath](https://hashnode.com/@GabrielRogath)

[Feb 21, 2023](https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0/comment/628d004cb4bd016fc9a31b9a#reply-63f4c07c75350fc1ff6904e4)

404 error, is a page not found or file not found error. could be your mapping file web.xml is not well configured
