How to Resolve WEB xml is missing and failOnMissingWebXml is set to true in Eclipse/STS? Last Updated : 28 Apr, 2022 Comments Improve Suggest changes Like Article Like Report Eclipse/STS IDE is generally used to develop Spring applications and what happens is whenever we are creating a simple Maven project and if the web.xml is missing or you have deleted that file then you may encounter this problem inside the pom.xml file corresponding to which do refer to the below image as follows: Now we are going to discuss how can we resolve this error via discussing two ways to fix this error which are as follows: Modifying the pom.xml file.Generating Deployment Descriptor Stub.Solution 1: Modification in the pom.xml file The simple and best solution for this problem is, just write the following line of code inside the <properties> tag something like this. <properties> <failOnMissingWebXml>false</failOnMissingWebXml> </properties> And this will resolve the error. Refer to the below image. Note: We can see the error has been gone. Solution 2: Generate Deployment Descriptor StubThe other solution is, click on your project > right-click > Java EE Tools > Generate Deployment Descriptor Stub as shown in the below image. And this will generate the web.xml file inside the WEB-INF folder with some pre-defined code as shown in the below image. And it will also resolve the error. Tip: Now heeks you must be wondering which way is better so straight forward answer is that Solution 1 is a better solution than adding an empty web.xml because this way the final product stays clean, we are just changing the build parameters. Comment More infoAdvertise with us Next Article How to Resolve WEB xml is missing and failOnMissingWebXml is set to true in Eclipse/STS? A AmiyaRanjanRout Follow Improve Article Tags : Java Java-Spring Practice Tags : Java Similar Reads Spring MVC - Get University/College Details via REST API REpresentational State Transfer (REST) is an architectural style that defines a set of constraints to be used for creating web services. REST API is a way of accessing web services in a simple and flexible way without having any processing. Spring MVC is a Web MVC Framework for building web applicat 6 min read Spring MVC - JSTL forEach Tag with Example JSP Standard Tag Library (JSTL) is a set of tags that can be used for implementing some common operations such as looping, conditional formatting, and others. JSTL aims to provide an easy way to maintain SP pages The use of tags defined in JSTL has Simplified the task of the designers to create Web 6 min read Spring MVC - Iterating List on JSP using JSTL JSP Standard Tag Library (JSTL) is a set of tags that can be used for implementing some common operations such as looping, conditional formatting, and others. JSTL aims to provide an easy way to maintain SP pages The use of tags defined in JSTL has Simplified the task of the designers to create Web 6 min read Two-Way Data Binding in Spring MVC with Example Data Binding, as the name itself, is a self-explanatory word. In data binding what we have to do is we have to capture or store the data so that we can bind that data with another resource (for example displaying the data in the frontend part) as per our needs or we can also read the data from a var 7 min read Spring MVC - Basic Example using JSTL JSP Standard Tag Library (JSTL) is a set of tags that can be used for implementing some common operations such as looping, conditional formatting, and others. JSTL aims to provide an easy way to maintain SP pages The use of tags defined in JSTL has Simplified the task of the designers to create Web 8 min read Spring MVC @ModelAttribute Annotation with Example In Spring MVC, the @ModelAttribute annotation binds a method parameter or method return value to a named model attribute and then exposes it to a web view. It refers to the property of the Model object. For example, if we have a form with a form backing object that is called "Student" then we can ha 8 min read Data Transfer Object (DTO) in Spring MVC with Example In Spring Framework, Data Transfer Object (DTO) is an object that carries data between processes. When you're working with a remote interface, each call is expensive. As a result, you need to reduce the number of calls. The solution is to create a Data Transfer Object that can hold all the data for 7 min read Spring MVC - Capture and Display the Data from Registration Form This article is the continuation of this article Spring MVC - Create Registration Form using Form Tag Library, where we have successfully created a registration form using the Form Tag Library. Here in this article, we are going to explain how can we capture the data that are entered by the user and 3 min read Spring MVC - Create Registration Form using Form Tag Library Spring Framework provides springâs form tag library for JSP views in Springâs Web MVC framework. In Spring Framework, we use Java Server Pages(JSP) as a view component to interact with the user. From version 2.0, Spring Framework provides a comprehensive set of data binding-aware tags. These tags ar 7 min read Data Binding in Spring MVC with Example Data Binding, as the name itself, is a self-explanatory word. In data binding what we have to do is we have to capture or store the data so that we can bind that data with another resource (for example displaying the data in the frontend part) as per our needs or we can also read the data from a var 8 min read Like