[jboss-dev-forums] [JBoss AS7 Development] - Classloader parent delegation on Jboss AS7
Joao Cunha
do-not-reply at jboss.com
Mon Jul 11 12:22:00 EDT 2011
Joao Cunha [http://community.jboss.org/people/jpcunha] created the discussion
"Classloader parent delegation on Jboss AS7"
To view the discussion, visit: http://community.jboss.org/message/614481#614481
--------------------------------------------------------------
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
[http://community.jboss.org/message/614481#614481]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110711/cdfd7f9f/attachment.html
More information about the jboss-dev-forums
mailing list