Hibernate, persistence.xml, orm.xml not found in NB 6.1

View: New views
1 Messages — Rating Filter:   Alert me  

Hibernate, persistence.xml, orm.xml not found in NB 6.1

by tab :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My NetBeans RCP application uses JPA with Hibernate. I've got it working with NB 6.0, but it breaks with NB 6.1. I've put Hibernate and it's dependencies into a HibernateEssentials library wrapper module. My persistence layer is developed outside of NetBeans, and the DataModel jar file has the persistence.xml and orm.xml files in its META-INF directory.

This works fine when tested outside of RCP. Inside my RCP module suite I wrap the DataModel.jar in a DataModelWrapper library wrapper module. The DataModelWrapper module depends on the HibernateEssentials module. This works fine in NB 6.0

When I upgrade to NB 6.1 I hit a runtime error where the Hibernate code can't find a named query from the orm.xml file. I presume that this has to do with the module class loaders, and Hibernate not being able to get the persistence.xml and orm.xml resources from the META-INF of the DataModel.jar.

Was there a change from NB 6.0 to 6.1 that changed the way classpaths and manifests work with modules?
LightInTheBox - Buy quality products at wholesale price