Hi!
This makes me mad Everything was working fine and I decided to change names of couple files and moved them to another package. After that I ran mvn clean package and tested that everything was working. NO it’s not
javax.persistence.PersistenceException: No Persistence provider for EntityManager named testJPA
at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source)
at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source)
at com.vaadin.addon.jpacontainer.JPAContainerFactory.createEntityManagerForPersistenceUnit(JPAContainerFactory.java:103)
at com.vaadin.addon.jpacontainer.JPAContainerFactory.make(JPAContainerFactory.java:87)
In my pom.xml:
org.eclipse.persistence eclipselink 2.4.0-M12 org.eclipse.persistence javax.persistence 2.1.0.v201201251030in my src/resources/persistence.xml:
org.eclipse.persistence.jpa.PersistenceProvider falseI have no idea what has happend. First by the way I copied one file to a new package and I got a error message that I have same persistence name in two files even if I deleted the file from the old folder.
EDIT: I recognized that under my target folder, there is no other jars at all, neither inside the deployed application .jar, no eclipselink.jar etc…
EDIT2: persistence.xml is not in correct place under the META-INF after the deploy. Have someone an idea what could be the reason for that, I haven’t changed the pom.xml at all?
Thanks,
Sami