You can do it also like this:
- Right click on Deployment Descriptor in Project Explorer.
- Select Generate Deployment Descriptor Stub.
It will generate WEB-INF folder in src/main/webapp and an web.xml in it.

Related Posts:
- web.xml is missing and
is set to true - How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
- web.xml is missing and
is set to true – web.xml is there and can’t edit deployment assembly - No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Eclipse/Maven error: “No compiler is provided in this environment”
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- Editor does not contain a main type
- Eclipse: Enable autocomplete / content assist
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
- “insufficient memory for the Java Runtime Environment ” message in eclipse
- Control an Arduino with Java
- Why Maven project is tied to J2SE-1.5 by default?
- How do I resolve the “java.net.BindException: Address already in use: JVM_Bind” error?
- Opening JSF Facelets page shows “This XML file does not appear to have any style information associated with it.”
- The program can’t start because cygwin1.dll is missing… in Eclipse CDT
- Eclipse C++ : “Program “g++” not found in PATH”
- Unbound classpath container in Eclipse
- ‘cannot open git-upload-pack’ error in Eclipse when cloning or pushing git repository
- “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal
- Cannot change version of project facet Dynamic Web Module to 3.0?
- “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal
- eclipse won’t start – no java virtual machine was found
- Deploying Maven project throws java.util.zip.ZipException: invalid LOC header (bad signature)
- Eclipse returns error message “Java was started but returned exit code = 1”
- how to run the command mvn eclipse:eclipse
- Ant “JAVA_HOME does not point to the JDK” – but it does
- Program “make” not found in PATH
- Eclipse internal error while initializing Java tooling
- How to clear console in Java – Eclipse
- Eclipse keyboard shortcut to indent source code to the left?
- eclipse for chrome?
- Can eclipse be configured to automatically fix missing Imports?
- How to resolve Unable to load authentication plugin ‘caching_sha2_password’ issue
- “The import org.springframework cannot be resolved.”
- Program “make” not found in PATH
- Importing Maven project into Eclipse
- “Source folder is not a Java project” error in eclipse
- How to show the Project Explorer window in Eclipse?
- Avoiding “resource is out of sync with the filesystem”
- Eclipse Mars vs Luna
- Push eclipse project to GitHub with EGit
- How to open an existing project in Eclipse?
- CodePro Analytix: Where to find the plugin
- Maven dependency update on commandline
- How to open Console window in Eclipse?
- Some projects cannot be imported because they already exist in the workspace error in Eclipse
- How do I enable index downloads in Eclipse for Maven dependency search?
- Java error no lwjgl64 in path?
- How to uninstall Eclipse?
- Can’t start Eclipse – Java was started but returned exit code=13
- Can’t start Eclipse – Java was started but returned exit code=13
- Eclipse IDE for Java – Full Dark Theme
- Is there a way to convert all comments into javadoc comments? [Eclipse/Java]
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- Maven skip tests
- Failed to write core dump. minidumps are not enabled by default on client version of windows
- How to uninstall Eclipse?
- Editor does not contain a main type in Eclipse [duplicate]
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- Editor does not contain a main type in Eclipse [duplicate]
- What is Java Servlet?
- undefined reference to `WinMain@16′
- How is “mvn clean install” different from “mvn install”?
- JRE Missing when installing eclipse
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- make: g++: Command not found
- ‘react-scripts’ is not recognized as an internal or external command
- Lombok and Maven
- “g++” is not recognized as an internal or external command, MinGW
- Server Tomcat v9.0 Server at localhost failed to start
- mvn command not found in OSX Mavrerick
- Eclipse C++ : “Program “g++” not found in PATH”
- Maven Install on Mac OS X
- Cannot find “Package Explorer” view in Eclipse
- JVM Crash – “EXCEPTION_ACCESS_VIOLATION”
- Maven 3 and JUnit 4 compilation problem: package org.junit does not exist
- Session TimeOut in web.xml
- what does Dead Code mean under Eclipse IDE Problems Section
- what does Dead Code mean under Eclipse IDE Problems Section
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Eclipse: Java was started but returned error code=13
- “g++” is not recognized as an internal or external command, MinGW
- Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL
- Server Tomcat v9.0 Server at localhost failed to start
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Facebook login NullPointerException
- mvn command not found in OSX Mavrerick
- unused import statement for used ones in IntelliJ IDEA
- How to force maven update?
- How to change a package name in Eclipse?
- what is this ANT build?
- Maven: Non-resolvable parent POM
- org.springframework.web.servlet.PageNotFound noHandlerFound No mapping found for HTTP request with URI
- java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet