I don't have my project handy to be able to tell for certain, but I think you're doing too much work. I think all I did was keep a copy of the persistence.xml file in the project's webapp resources directory along with all the other config files for
JSF, Spring, etc. and they were automagically copuied over when I did a build.