Home > error assembling > error assembling war deployment descriptor

Error Assembling War Deployment Descriptor

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

Error Assembling War Webxml Attribute Is Required (or Pre-existing Web-inf/web.xml If Executing

Us Learn more about Stack Overflow the company Business Learn more about hiring failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “webxml attribute is required” error

Error Assembling War Webxml Attribute Is Required Spring Boot

in Maven up vote 207 down vote favorite 39 I am getting the following error: Error assembling 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

Maven War Plugin No Web Xml

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 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 org.apache.maven.plugins maven-war-plugin src\main\webapp\WEB-INF\web.xml share|improve this answer edited Oct 21 '15 at 14:12 Joshua Taylor 63.3k754137 answered Mar 18 '11 at 14:50 Arpit 4,58342255 2 Worked perfectly for me. Thanks for the code. –Nicholas Dec 5 '11 at 20:43 28 Worked for me too, thanks. But what's the default location where Maven searches? –Buffalo Mar 3 '12 at 8:03 4 I just updated the maven war plugin from 2.1.1 to 2.4, and the need to make explicit the default location wen away. –Xv. May 22 '14 at 13:59 Worked for the same problem for me. Thanks –somnathchakrabarti Oct 15 '14 at 12:40 add a comment| up vote 63 down vote It works perfectly for me too. ..... org.apache.maven.plugins maven-war-plugin

messages Andrew Madu Reply | Threaded Open this post in threaded maven web.xml location view ♦ ♦ | Report Content as

Failonmissingwebxml Example

Inappropriate ♦ ♦ Build Error - Error assembling WAR: Deployment descriptor: Hi, so my maven-war-plugin version pom.xml reads as follows: [code] 4.0.0 com.mysite.app mysite-spring-app 1.0-SNAPSHOT http://stackoverflow.com/questions/5351948/webxml-attribute-is-required-error-in-maven war ..... [/code] I simply changed the packaging type to 'war' just to see what output would be generated, and am receiving this error: [code] Error assembling WAR: Deployment descriptor: C:Documents and Settings\mysite\mysite-spring-app\target\mysite-spring-app-1.0-SNAPSHOT\WEB-INF\web.xml does not exist [/code] What is the issue http://maven.40175.n5.nabble.com/Build-Error-Error-assembling-WAR-Deployment-descriptor-td107510.html here? My platform is as follows: WIN XP SP1 JDK 1.6.0_06 Maven 2.0.9 Many thanks in advance. -- Regards Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] Wayne Fay Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Build Error - Error assembling WAR: Deployment descriptor: On 6/8/08, Andrew Madu <[hidden email]> wrote: > Error assembling WAR: Deployment descriptor: C:Documents and > Settings\mysite\mysite-spring-app\target\mysite-spring-app-1.0-SNAPSHOT\WEB-INF\web.xml > does not exist It appears that you do not have web.xml file in your src/main/webapp/WEB-INF folder. Add one, and try again. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] « Return to Maven - Users | 1 view|%1 views Loading... Free forum by Nabble Edit this page

Unanswered Topics Wrox Programmer Forums > Java > Java Open Source > Spring Error assembling WAR: Deployment descriptor http://p2p.wrox.com/spring/66879-error-assembling-war-deployment-descriptor.html User Name Remember Me? Password Reminder Password Register Register | https://issues.apache.org/jira/browse/MWAR-52 FAQ | Members List | Calendar | Today's Posts | Search Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the Spring section of the Wrox Programmer error assembling to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are error assembling war displayed to guests. Registration is fast, simple and absolutely free . Thread Tools Display Modes #1 (permalink) March 25th, 2008, 10:16 AM hendragd Registered User Join Date: Mar 2008 Location: , , . Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Error assembling WAR: Deployment descriptor Dear all, I have problem regarding with create 'WAR' file. From this book (beginning spring 2 framework) at chapter 4 page 108, i follow the instruction and go to wrox-pix-web directory and type command 'mvn package', but i've get this error : [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[pixweb] in [C:\Wrox\wrox-pix-web\target\pixweb-0.0.1] [INFO] Processing war project [INFO] Webapp assembled in[540 msecs] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling WAR: Deployment descriptor: C:\Wrox\wrox-pix-web\target\pixweb-0.0.1\WEB-INF\web.xml does not exist. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Error assembling WAR: Deployment descriptor: C:\Wrox\wrox-pix-web\target\pixweb-0.0.1\WEB-INF\web.xml does not exist. at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.

not honor the webXml configuration setting [patch included!]Agile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Closed Priority: Major Resolution: Fixed Affects Version/s: 2.0 Fix Version/s: 2.0.1 Component/s: None Labels: None Description The WAR plugin does not honor the webXml configuration setting. I think this comes from web.xml being hardcoded into WarMojo, rather than using the default-value mechanism for the MOJO attribute. Here is a patch: Index: C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java =================================================================== -- C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (revision 416739) +++ C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (working copy) @@ -102,7 +102,7 @@ /** The path to the web.xml file to use. * * @parameter expression="$ {maven.war.webxml}" + * @parameter expression="${maven.war.webxml} " default-value="WEB-INF/web.xml" */ private File webXml; Index: C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java =================================================================== -- C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java (revision 416739) +++ C:/cc/sd_area51_3/OcToPuS/tools/maven/plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java (working copy) @@ -177,7 +177,7 @@ warArchiver.addDirectory( getWebappDirectory() ); warArchiver.setWebxml( new File( getWebappDirectory(), "WEB-INF/web.xml" ) ); + warArchiver.setWebxml( getWebXml() ); // create archive archiver.createArchive( getProject(), archive ); OptionsSort By NameSort By DateAscendingDescendingAttachments my-webapp.zip 27/Jun/06

 

Related content

eclipse maven error assembling war webxml attribute is required

Eclipse Maven Error Assembling War Webxml Attribute Is Required table id toc tbody tr td div id toctitle Contents div ul li a href Error Assembling War Webxml Attribute Is Required or Pre-existing Web-inf web xml If Executing a li li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Maven Web xml Location a li li a href Maven-war-plugin Version a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss

error assembling war deployment descriptor web.xml does not exist

Error Assembling War Deployment Descriptor Web xml Does Not Exist table id toc tbody tr td div id toctitle Contents div ul li a href Error Assembling War Webxml Attribute Is Required or Pre-existing Web-inf web xml If Executing a li li a href Error Assembling War Webxml Attribute Is Required Spring Boot a li li a href Maven War Plugin No Web Xml a li li a href Maven Web xml Example a li ul td tr tbody table p here for a quick overview of the relatedl site Help Center Detailed answers to any questions p h id

error assembling war webxml attribute is required grails

Error Assembling War Webxml Attribute Is Required Grails table id toc tbody tr td div id toctitle Contents div ul li a href Error Assembling War Webxml Attribute Is Required or Pre-existing Web-inf web xml I a li li a href Maven Web xml Location a li li a href Maven Web xml Example a li ul td tr tbody table p 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 relatedl this site About Us Learn more about Stack Overflow the company error

error assembling ejb meta-inf/ejb-jar.xml is required

Error Assembling Ejb Meta-inf ejb-jar xml Is Required table id toc tbody tr td div id toctitle Contents div ul li a href Maven Ejb Example a li ul td tr tbody table p 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 relatedl this site About Us Learn more about Stack Overflow the maven-ejb-plugin example company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions p h id Maven Ejb Example p Jobs Documentation Tags Users Badges Ask

error assembling war deployment descriptor web.xml

Error Assembling War Deployment Descriptor Web xml p here for a quick overview of the site Help Center Detailed answers to any questions you might relatedl have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a minute Sign up Maven error while building

error assembling war webxml at&t

Error Assembling War Webxml At t table id toc tbody tr td div id toctitle Contents div ul li a href Error Assembling War Webxml Attribute Is Required or Pre-existing Web-inf web xml If Executing a li li a href Error Assembling War Webxml Attribute Is Required Maven a li li a href Error Assembling War Webxml Attribute Is Required or Pre-existing Web-inf web xml I a li li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li ul td tr tbody table p here for a quick overview of the site

info error assembling war webxml attribute is required

Info Error Assembling War Webxml Attribute Is Required table id toc tbody tr td div id toctitle Contents div ul li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Maven-war-plugin Version a li li a href Failonmissingwebxml a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta relatedl Discuss the workings and policies

maven error assembling war webxml attribute is required

Maven Error Assembling War Webxml Attribute Is Required table id toc tbody tr td div id toctitle Contents div ul li a href Error Assembling War Webxml Attribute Is Required Spring Boot a li li a href Maven Web xml Location a li li a href Maven-war-plugin Version a li li a href Maven-war-plugin Configuration a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta relatedl Discuss the workings and policies of this site About failed to execute goal org apache maven plugins

maven error assembling war deployment descriptor

Maven Error Assembling War Deployment Descriptor table id toc tbody tr td div id toctitle Contents div ul li a href Selected War Files Include A Web-inf web xml Which Will Be Ignored a li li a href Maven Web xml Location a li ul td tr tbody table p here for a quick overview of the site relatedl Help Center Detailed answers to any questions you error assembling war webxml attribute is required or pre-existing web-inf web xml if executing might have Meta Discuss the workings and policies of this site failed to execute goal org apache maven plugins

maven grails error assembling war webxml attribute is required

Maven Grails Error Assembling War Webxml Attribute Is Required table id toc tbody tr td div id toctitle Contents div ul li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Maven Web xml Example a li li a href Maven-war-plugin Version a li ul td tr tbody table p here for a quick overview of the site relatedl Help Center Detailed answers to any questions you p h id Failed

reason error assembling war webxml attribute is required

Reason Error Assembling War Webxml Attribute Is Required table id toc tbody tr td div id toctitle Contents div ul li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Failed To Execute Goal Org apache maven plugins maven-war-plugin war default-war On Project a li li a href Maven Web xml Example a li li a href failonmissingwebxml false failonmissingwebxml a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers relatedl to any questions you might have Meta Discuss