On 15.05.2012 21:34, Neil Bartlett wrote:
> In other words, Hibernate is stupid, and breaks modularity! It's well
> known to OSGi programmers as a "difficult" library to use.

What Neil said. But not all's unwell that ends unwell.

As usual there is more to it and as you can see on
http://grepcode.com/file/repository.jboss.org/maven2/org.hibernate/hibernate-commons-annotations/3.1.0.GA/org/hibernate/annotations/common/util/ReflectHelper.java#71

it will also try the old ThreadContextClassLoader thing. So setting the
TCCL to the bundle's classloader containing your class (or any other
bundle properly importing it) should fix this.

-h

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to