Could not find any META-INF/persistence.xml file in the classpath

I'm working to create an java web apps using Struts and a Cassandra DB. This post is not unique to my configuration because persistence.xml is using by many API/ORM.

So, I already build 1 project where I just insert/delete/update/read in my database. For this project i needed persistence.xml and all running nice.

But now, I joined 2 project and I create an build.xml for creating my project in tomcat 6. I put /META-INF/persistence.xml in this folders : WEB-INF WEB-INF/ressources /

Thanks for help and sorry for my broken english

Answers


Short answer:

Put it in WEB-INF/classes, not WEB-INF/ressources


Need Your Help

Storing complex objects in web.config

c# .net web-config inversion-of-control

I am basically wanting to fetch an IDIctionary from a place which is global setting repository. We basically use IOC and I had put it there but for certain reasons , it has to be moved to web.confi...