| When using hibernate persistent types are "enhanced" using javassist proxying. This proxying behaviour makes the assumption that javassist and hibernate internal types are directly loadable by the client's class loader. In some environments (for example OSGi) This isn't true. The problem is here: https://github.com/hibernate/hibernate-orm/blob/ec4f20a5fba79444dbd704f1305f961c339dd7d1/hibernate-core/src/main/java/org/hibernate/proxy/pojo/javassist/JavassistProxyFactory.java#L96 There is a related issue in Aries here: https://issues.apache.org/jira/browse/ARIES-1534 but it would be best if the 5.0.x and 5.1.x Hibernate branches could be fixed |