I'm using eclipse and
maven for a spring MVC/REST controller/Spring JPA.
The
JDBC for the basic authentication needs a persistence.xml to access the MySQL database to compare user names and passwords.
The JPA for the ORM needs a persistence.xml too. How does this work? Can they both use the same copy of persistence.xml?
Presently I have two copies of the same file and it was working with eclipse/tomcat (but something changed and now I am getting errors creating the JPA entity framework manager factory).
(1) ./Guestbook/src/main/resources/META-INF/persistence.xml
(2) ./Guestbook/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml
Where is this file suppose to reside? Do I need two copies in different directories?
Thanks
Siegfried