Hi Milosz What you suggest was definitely a problem last week sometime, but the error message on that was clear enough for me to fix it by myself.
My entities are definitely in different packages now. I still get the same issue. I've also changed the package location of the class that returns my EntityManager. And that class returns a differently named persistence unit in each project. My persistence.xml looks like this <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="kyc-request-data-engine"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <jta-data-source>java:kyc-dev-ds</jta-data-source> <class>za.co.rmb.rac.kyc.request.entities.KycRequestSubsystems</class> ... ... ... <properties> <property name="openjpa.DataCache" value="true"/> <property name="openjpa.RemoteCommitProvider" value="sjvm"/> <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/> <property name="openjpa.TransactionMode" value="managed"/> </properties> </persistence-unit> </persistence> The persistence.xml in the other project is exactly the same except for the persistence-unit element, which has a different name. They both use the same datasource. -- View this message in context: http://n2.nabble.com/Two-OpenJPA-Applications-in-the-same-container-tp4686242p4693587.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
