I personally find this a bit weird, but it's because the JPA persistence.xml needs to end up in war!WEB-INF/classes/META-INF/persistence.xml whereas Tomcat will expect to find context.xml in war!WEB-INF/context.xml. I suppose you could put it in src/main/webapp/WEB-INF/classes/META-INF/persistence.xml but then IDEs will probably not find it easily/at all.
Glad it works for you. On Sat, Aug 8, 2015 at 8:47 AM, Sreyan Chakravarty <sreyan.mail...@gmail.com> wrote: > Thanks > > On Sat, Aug 8, 2015 at 4:05 PM, jieryn <jie...@gmail.com> wrote: > >> src/main/resources/META-INF/persistence.xml >> src/main/webapp/WEB-INF/context.xml >> >> On Fri, Aug 7, 2015 at 3:24 PM, Sreyan Chakravarty >> <sreyan.mail...@gmail.com> wrote: >> > I am using Maven for building a simple webapp that uses JDBC connection >> > pooling along with Hibernate. >> > >> > I am using the Maven Webapp Archetype to build the project. >> > >> > Where do I put context.xml and persistence.xml that I normally put under >> > META-INF in a normal dynamic web project. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org