Created a project maven webapp in the console, registered dependencies in pom.xml
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> servlet description in web.xml
<servlet> <servlet-name>Servlet</servlet-name> </servlet> <servlet-mapping> <servlet-name>Servlet</servlet-mapping> <url-pattern>/<url-pattern> </servlet-mapping> servlet itself
import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; public class Servlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter pw = resp.getWriter(); pw.println("<h1> Hello Servlets!!!</h1>"); } } assembled mvn clean package project, webapps folder to tomcat
I go to the browser localhost:8080/webApp/ output zero.
Here is the structure of my project after assembly. I deliberately do everything from the console to figure out where it came from and where .... 
http://localhost:8080orhttp://localhost:8080/Servlet- user194374packagingset towar? What is the full name of the archive? - user194374<servlet-class>com.myapps.test.Servlet</servlet-class>- Vartlok