---
title: "Comment by Ben Bi on \"How to create Java Servlet with Tomcat and Maven in VS Code.\" | Hashnode"
description: "Hello, do u know how to setup vhost on it?, to remove &quot;servlet-1.0-SNAPSHOT/&quot; path, since the static assets in .war cannot be accessed."
url: "https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0/comment/63b7d247624134a0c9b2f8f2"
---

[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)

[Ben Bi](https://hashnode.com/@bennybi)

[Jan 6, 2023](https://hashnode.com/posts/how-to-create-java-servlet-with-tomcat-and-maven-in-vs-code/61ec3d0ca12088017fbea1f0/comment/63b7d247624134a0c9b2f8f2)

Hello, do u know how to setup vhost on it?, to remove "servlet-1.0-SNAPSHOT/" path, since the static assets in .war cannot be accessed.

[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/63b7d247624134a0c9b2f8f2#reply-63f4c135f338bec1cf2dd722)

some server will require you to rename the .war file to root.war file
