I always thought (don't know why) that META-INF along with WEB-INF should be at the root of a web app.
+mywebapp
---WEB-INF
------classes
------lib
---META-INF
apparently this is wrong, I found that the JPA persistence.xml should be under META-INF folder which in turn should be on the classpath, so the structure should be:
+mywebapp
---WEB-INF
------classes
---------com/blah
---------META-INF
------------persistence.xml
Don't know why, but for this reason this just don't look right. I searched for a 'standard' META-INF location, but couldn't find an answer, apparently this is an obvious thing except for boneheads like me :-)
Another thing is, (although this may not be the right forum) why
Ant <jar> creates META-INF on the root of the war if META-INF is supposed to be on the classpath?