Hi,
I thought the persistent.xml file should be in the META-INF folder of .war file
due to some JPA/JEE normalization but it I do not place it in the classes
folder of my war file, it doesn't work.
Any idea or explanation ?
Thanks.
Hi Jean-Baptiste,
You are correct. The persistence.xml file should in the META-INF folder of
the .war file. Something along these lines...
emp.war
:
WEB-INF/classes/META-INF/persistence.xml
WEB-INF/classes/examples/model/Employee.class
:
This shows that the WEB-INF/classes is the persistence