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
[http://community.jboss.org/message/582697#582697]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to