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 to lookup datasource configured in tomee.xml: I tried Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory"); InitialContext initialContext = new InitialContext(p); DataSource dataSource = (DataSource) initialContext.lookup("java:comp/env/ProjecteamDSUnmanaged"); I also tried InitialContext initialContext = new InitialContext(); DataSource dataSource = (DataSource) initialContext.lookup("ProjecteamDSUnmanaged"); but i am always getting naming exception. Am I doing something wrong? Thanks in advance. -- 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-tp4658508p4658559.html Sent from the OpenEJB User mailing list archive at Nabble.com.