And when you extract then recreate, you do not change any dir stuff moving files anywhere. Maybe in your persistence.xml you have a weird CR LF and when you extract it, it fixes it then the re jar gets the correct version.
Because it looks like JBoss doesn't see the persistence.xml to deploy your persistence unit before trying to deploy the EJBs in the jar.
What is the dir structure and where files are in the first jar version?
I am pasting the content of my persistence.xml file and the tree structure of my original jar created by ANT. I did a file compare using textpad. They turned out to be identical and have same size of 455 bytes.
Structure of Jar file
Joined: Dec 18, 2003
It was a very silly mistake. I had the ANT build script create'meta-inf' instead of 'META-INF'. Somehow when I unjarred and jarred them back manually, the folder was correctly changed to 'META-INF'.
Now after I modified my build script, it got deployed fine.
Cool, because I was beating my head trying to figure it out. I knew for some reason JBoss couldn't find the persistence.xml, but looking at your dir structure of course didn't see a lowercase "META-INF"