[jboss-user] [JBoss Microcontainer] - Re: How to stop my WAR loading JBoss's provided 3rd party classes?

Fabrice Daugan do-not-reply at jboss.com
Mon Jan 24 04:36:53 EST 2011

Fabrice Daugan [http://community.jboss.org/people/Fabdouglas] created the discussion

"Re: How to stop my WAR loading JBoss's provided 3rd party classes?"

To view the discussion, visit: http://community.jboss.org/message/582697#582697

In fact all issues come from the fact JBoss load the persistence.xml too early. I've tested to update the <provider> tag with a little patch by using "org.hibernate.ejb.HibernatePersistenceMyImpl" (this class has to start with "org.hibernate.ejb.HibernatePersistence" to be considered by Hibernate configuration, but hibernate dos not use the CL of this provided class, but the one of "PersistenceUnitInfo"  (see Ejb3Configuration#configure(PersistenceUnitInfo, Map). One solution could consist to wrap the "PersistenceUnitInfo" with a custom proxy class to force the CL....
Anyway, to be fully compliant with JBoss (and some other JEE servers) I've switch to this solution :  http://fabdouglas.blogspot.com/2011/01/how-to-run-spring-3-jpa-application-to.html http://fabdouglas.blogspot.com/2011/01/how-to-run-spring-3-jpa-application-to.html

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110124/5a8535ce/attachment-0001.html 

More information about the jboss-user mailing list