Error Assembling War Webxml Attribute Is Required Grails
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company error assembling war webxml attribute is required (or pre-existing web-inf/web.xml if executing Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs error assembling war webxml attribute is required spring boot Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, error assembling war webxml attribute is required maven just like you, helping each other. Join them; it only takes a minute: Sign up “webxml attribute is required” error in Maven up vote 207 down vote favorite 39 I am getting the following error: Error assembling
Error Assembling War Webxml Attribute Is Required (or Pre-existing Web-inf/web.xml I
WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) I have got web.xml in right place which is projectname\src\main\webapp\WEB-INF\web.xml What could be causing this? maven war share|improve this question edited Jun 19 '14 at 20:09 ArtB 7,1531463104 asked Mar 18 '11 at 12:25 user617966 1,67541524 1 is your packaging set to war in the pom? –crowne Mar 18 '11 at 17:15 add a comment| 14 Answers 14 active oldest failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project votes up vote 255 down vote It would be helpful if you can provide a code snippet of your maven-war-plugin. Looks like the web.xml is at right place, still you can try and give the location explicitly
App EngineApache AntApache MavenjQueryJava MongoDBQuartz SchedulerLog4jContact Us Maven - webxml attribute is requiredBy mkyong | January 27, 2016 failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project | Viewed : 6,682 times +261 pv/wMaven package a
Maven Web.xml Location
web application and hits the following error message : $ mvn package
Maven Web.xml Example
//... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project spring4-mvc-maven-ajax-example: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml http://stackoverflow.com/questions/5351948/webxml-attribute-is-required-error-in-maven if executing in update mode) -> [Help 1] Solution1. For servlet container < 3, make sure WEB-INF/web.xml file exists.2. For servlet container >=3, and NO web.xml web application, declares the following maven-war-plugin plugin, and set the failOnMissingWebXml option to false.pom.xml
this release is ease http://www.javaroots.com/2014/01/webxml-attribute-is-required-error-in.html of development . Now you don't have to write configurations related things in web.xml , you can write all these things by using annotations . So , from servlet 3.0 , web.xml is optional (however , if web.xml is present , it will be given preference over error assembling annotations ) . If you are using maven for packaging your war , you might get following error if you don't have web.xml in your application . Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project webSocketExample: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml error assembling war if executing in update mode) -> [Help 1] You can resolve this error by adding following lines in your pom.xml