Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR error - Unexpected element "{}war"

 
sue sen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All right..got this fixed. Thanks to anyone who may have stopped by
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic