I am trying to use JPA in axis 2 web service producer but the I am getting the error:
**No Persistence provider for EntityManager**
Now, I have placed my persistence.xml in JPAcontent and web-inf/classes/meta-inf. Moreover, when I test my web service class by calling its respective method locally, it is running fine. Where do we have to place persistence.xml in case if axis2 project?
James Sutherland wrote:Also ensure your have your JPA provider jar on the classpath (in your case this would be toplink-essentials.jar)
I have already tested web service code by calling it locally and it is running. So I dont think so there would be any jar related problem. Jars are present in lib folder. The problem seems to be related to axis2 configuration. Checking out this link: https://issues.apache.org/jira/browse/AXIS2-5383