Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"error: webxml attribute is required" but update=true !

Status
Not open for further replies.

DannyKage

Programmer
May 19, 2006
1
0
0
CA
Hi,
I am trying to create a war file and I get this error

BUILD FAILED
C:\temp\buildant.xml:5: webxml attribute is required

Here is my script:

<?xml version="1.0"?>

<project name="test" default="main">
<target name="main">
<war update="true" destfile="test.war" basedir="c:/temp/test" >
<include name="*.DOC"/>
</war>
</target>
</project>

From the documentation for war:

webxml is required "unless update is set to true", which in my script it is. I'm using ant version 1.6.5
 
Did you previously run the script using the webxml attribute? I do not know but I would gues there is no pre-existing web.xml file referenced which is why you are getting that message.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top