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.
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.)