I had the same problem the domain objects are scattered into multiple java projects, These projects intrun are part of an ear file. Since all the domain objects and mappings are in individual jar file when I start the application I got the same error as you described in your post.
I resolved the problem by adding class definition of all domain objects into the persistence.xml file
1. Poject A -- projecta.domain.One
2. Project B -- projectb.domain.Two
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<persistence 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"
version="1.0">
<persistence-unit name="cwCareweb">
<class>projecta.domain.One</class>
<class>projectb.domain.Two</class>
</persistence-unit>
</persistence>