Re: can't add persistence.xml to my EJB jar META-INF exceptions are thrown and application is not deployed

2012-11-13 Thread elico
Hi, Thank you for your help. I am currently using JPA with hibernate which works well. When I have time I will try to use with with the snapshot and send you my findings. Now I am having a different problem which I will also post in a new thread: I have a JAR in the lib directory which tries

can't add persistence.xml to my EJB jar META-INF exceptions are thrown and application is not deployed

2012-11-11 Thread elico
Hi, I am using TomEE to deploy an EAR file, that contains one EJB JAR and one WAR. I want to add entities using the default provider. I have created a resource in tomee.xml to use MySQL DB. Then I would like to use entity manager so I am trying to create the following persistence.xml in the EJB

Re: can't add persistence.xml to my EJB jar META-INF exceptions are thrown and application is not deployed

2012-11-11 Thread elico
Hi,Thank you for the reply.First, I would like to say, when I followed the instructions how to use Hibernate as JPA on TomEE, I could successfully start the server (yet I didn't try to create any entities, I hope it will work well :)About my project, I added the following JARs to the TomEE/lib1.