• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ANT <jar>: How NOT to include META-INF folder

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all- I have been trying to make something (Spring 3 + JPA + Tomcat 7) work without luck since yesterday and after trial and (much) error found that the placement of META-INF was wrong in my war file. I had META-INF (and WEB-INF) at the root:

+mywar
---WEB-INF
---META-INF

apparently it should be :

+mywar
---WEB-INF
-------classes
-------META-INF

My question is how can I make Ant NOT to include a META-INF folder in the root of the war? i tried the options for controlling META-INF behavior, but there is just no way to shut it off, can somebody please help?
Thank you.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't specific any META-INF information to the <war> task. Instead, <copy> your desired information a META-INF directory where your classes are located and then the <war> task will copy the classes ans META-INF to WEB-INF/classes. (I could be more specific if I knew your directory layout and if you would have posted the <war> task you are using.)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic