|Re: How to deploy persistence.xml in a web project? [message #1444241 is a reply to message #1444154]
||Mon, 13 October 2014 21:11
| Roberto Sanchez Herrera
Registered: January 2011
By default, a new dynamic web project creates a source folder called src, and inf you take a look at the deployment assembly page of the web project (right click on the project > Properties > Deployment Assembly), you will see there is a mapping with src as the source, and WEB-INF/classes as the Deploy path.
So, you can try creating a META-INF folder under src, and put your persistence.xml in that location.
BTW, if you add the JPA facet to your web project, META-INF/persistence.xml will be created for you under src.
Hope this helps.
Powered by FUDForum
. Page generated in 0.01813 seconds