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. antlr-2.7.7.jar2. dom4j-1.6.1.jar3. hibernate-commons-annotations-4.0.1.Final.jar4. hibernate-core-4.1.8.Final.jar5. hibernate-entitymanager-4.1.8.Final.jar6. hibernate-jpa-2.0-api-1.0.1.Final.jar7. jboss-logging-3.1.0.GA.jar8. jboss-transaction-api_1.1_spec-1.0.0.Final.jarThe JAR files above added to use JPA with hibernate - I have to say that the problem I asked here about, was before I added these jar files.In addition I added the following (those I added when started the project):1. log4j-1.2.17.jar & tomcat-juli-adapters.jar - to use log4j for tomcat logs2. mysql-connector-java-5.1.22-bin.jarMy project structure is:test-ear -> lib: empty (no jars added) -> test-ejb.jar (no jars) -> META-INF/persistence.xml -> test-web.war -> WEB-INF/lib: empty (no jars added)I hope later today or tomorrow to add entities when using hibernate JPA and I will update whether this was successful.Thank you very much.
-- View this message in context: http://openejb.979440.n4.nabble.com/can-t-add-persistence-xml-to-my-EJB-jar-META-INF-exceptions-are-thrown-and-application-is-not-deployd-tp4658508p4658514.html Sent from the OpenEJB User mailing list archive at Nabble.com.