I have very simple persistance.xml file:
You can provide for jar-file element path to a folder with compiled classes. For example I added something like that when I prepared persistence.xml to some integration tests:
jar-file
file:../target/classes