• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

WAR error - Unexpected element "{}war"

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All right..got this fixed. Thanks to anyone who may have stopped by
 
There's a city wid manhunt for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic