I use jboss 4.0.4-Ga with Hibernate2. I also need a scoped repository for the application that uses hibernate. When the application is about to be deployed the Exception "NoClassDefFoundError: net/sf/cglib/KeyFactory" is thrown although the cglib.jar is in the WEB-INF/lib directory as well as all the other dependency libraries of hibernate 2 and the hibernate2.jar.
When I remove the scoped repository it works fine. But i really need it.. Any ideas what might be the cause of the probem and how to solve it?