Classloader Issues with Envers in OSGi
问题 I've successfully started Hibernate in an OSGi context, and now I want to add Envers. The documentation claims that's possible. I don't believe it anymore. There is no documentation of any kind for this subject and nobody seems to have actually done it. Moreover even with a Blueprint implementation I had to hack the classloader to make Hibernate even find Envers: osgiClassLoader = new org.hibernate.osgi.OsgiClassLoader(); osgiClassLoader.addBundle(requestingBundle); osgiClassLoader.addBundle