开发者

Recent (>=3.5) version of Hibernate with JBoss 4?

Is this actually possible and are there any instructions around for it?

I've read a lot around specifying the classloader and using java2ParentDelegation as false in my jboss-app.xml a开发者_开发技巧nd moving jars out of (or into) the JBoss server lib directory. But I haven't found anything conclusive and I've not been able to get past class loader related issues (classes not found or incompatible).

Thanks in advance (and no, I can't change the JBoss version sadly)!


To solve the class loading issues with hibernate in jboss server you need to add the jboss-classloading.xml inside the WEB-INF folder of your web application. Read more about these configuration settings here.

<classloading xmlns="urn:jboss:classloading:1.0"
domain="pentaho.ear"
export-all="NON_EMPTY"
import-all="true"
parent-first="false">
</classloading>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜