I had a similar problem - due to the fact that my objects were distributed across several jar files. I also used maven ...
first I managed to run it by extracting the jar file into classes. In the end, the solution was to specify the dependency jar files in the persitence.xml file:
... <persistence-unit ... <provider>...</provider> <jar-file>WEB-INF/lib/my-jar-file-0.0.1-SNAPSHOT.jar</jar-file> <properties> ...
source share