我們使用Jboss 5.1來部署我們的幾個應用程序。現在,Jboss在其common/libs中有一個hibernate jars版本。我們的一個應用程序使用更新版本的hibernate jars。所以,我們有在Jboss中部署的戰爭打包的依賴jar。應用程序部署得很好,但是當我們嘗試點擊時,它會拋出下面的異常。Jboss休眠jar衝突
我的懷疑是Jboss使用它自己的版本的hibernate jars,但不是那些打包在戰爭中的jar ....我如何讓Jboss使用來自戰爭的hibernate jars而不是來自它的common/lib
我更喜歡在應用程序中進行更改,但不是在Jboss中,因爲有幾個其他應用程序位於相同的Jboss實例中,我不想通過修改jboss/common/LIB
SEVERE [ContainerResponse] The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NoSuchFieldError: INSTANCE
at org.hibernate.type.StandardBasicTypes.<clinit>(StandardBasicTypes.java:45)