JBoss Community

Classloader parent delegation on Jboss AS7

created by Joao Cunha in JBoss AS7 Development - View the full discussion

I'm migrating my application from jboss6->7rc1, and I'm having some issues with the new classloading mechanism. My Ear contains an older version of Hibernate on the ear lib folder, and when the application is starting up i get a java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session; because classloader requests are being delegated to the parent classloader, thus trying to use the new hibernate jars bundled on jboss7. On jboss6 everything was working great with java2ParentDelegation set to false.

 

Do you guys have any idea how can I get my bundled hibernate jars to work?

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community