uses a non-entity as target entity in the relationship
This error or similar appears in the Glassfish server log even though everything appears correct in the project. Double-check the persistence.xml to be sure it is correct. If it is, the problem is likely being caused by a cached persistence.xml. If you are using an IDE such as Netbeans be sure to Clean & Build before deploying.