Could someone please explain to me how to use Hibernate with Payara (Glassfish) Server? I created my persistence.xml in META-INF, dropped all required jars in payara41/glassfish/lib directory, but when I try to deploy my bundle it can't find any hibernate packages, even though I specified them in Import-Packages. I could deploy every required Hibernate jar manually, but some of them doesn't have OSGi support. What am I doing wrong here? I just want to get a connection from Glassfish connection pool and list all entries from one table using Hibernate. Btw, why Payara doesn't have an update tool like Glassfish has?
Edited for OndrejM
I just want to be able to use Hibernate to work with my database from osgi bundles, that's all.