-
2. Jboss AS 6 + HIBERNATE
skull Mar 24, 2011 3:19 PM (in response to wdfink)i try some issues that have on this docs, but i think that dont work, i allready got CLASSCASTEXCEPTION, i think that JBOSS are creating the DS with his libs and my application will create with my custom libs, if i remove some of my libs, the application begin work, but got some erros with my Entiies because i have some changes with hibernate (custom)
error:
org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
i try the jboss-web.xml
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
br.com.myapplication:archive=MyApplication.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
have some other ideas?