aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes  WAR error - Unexpected element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark " WAR error - Unexpected element "{}war"" Watch " WAR error - Unexpected element "{}war"" New topic
Author

WAR error - Unexpected element "{}war"

sue sen
Greenhorn

Joined: Jun 23, 2006
Posts: 3
Hi all,

I'm using Apache Ant version 1.6.5 and I get the error Unexpected element "{}war".

My code is as follows -

<war destfile="myapp.war" webxml="../Webroot/WEB-INF/web.xml">
<fileset dir="../Webroot"/>
<fileset dir="../Webroot/admin"/>
<fileset dir="../Webroot/conf"/>
<fileset dir="../Webroot/css"/>
<fileset dir="../Webroot/images"/>
<fileset dir="../Webroot/resources"/>
<fileset dir="../Webroot/scripts"/>
<lib dir="../WebRoot/WEB-INF/lib"/>
<classes dir="../WebRoot/WEB-INF/classes"/>
</war>

My build.xml exists in the root directory in a folder called buid

Any help will be appreciated. Hurry please

Thanks!
sue sen
Greenhorn

Joined: Jun 23, 2006
Posts: 3
All right..got this fixed. Thanks to anyone who may have stopped by
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: WAR error - Unexpected element "{}war"
 
Similar Threads
unable to create War using Ant
Bean could not be loaded by jsp
Struts and Ant
Ant war task and JSP tag files
Ant - Directory not created