I posted this question on the Glassfish forums as well but haven't got a response all day...
I have an Entity in a different JAR file than the one containing the Persistence Unit. My EntityManager can't find the Entity even though I declare it with a <class> tag in the persistence.xml and include it on the Persistence Unit's classpath (I use NetBeans Platform so I wrap the JAR in a library wrapper module and include it as a a 'module dependency' -- the equivalent of adding it as a library to the project).
This thread at the Glassfish forums addresses the issue in J2EE but the <jar-file> tag is not supported in J2SE. The JavaDoc/XML schema for persistence.xml confirms this.
Is there another way to do this in J2SE? Why is the <jar-file> tag not supported in J2SE?