0 Replies Latest reply on Dec 15, 2015 4:56 PM by Jubril Adisa

    Deploying two different ear files-Jboss 6.1

    Jubril Adisa Novice

      I have two different applications, I can deploy them successfully. But when i deploy them at the same time, I always get this error message.

       

      at java.lang.Thread.run(Thread.java:745) [:1.7.0_79]

      Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.hibernate.Transaction, msg=loader constraint violation: loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) previously initiated loading for a different type with name "org/hibernate/Transaction"

          at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:176) [jboss-classloader.jar:2.2.1.GA]

          at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:280) [jboss-classloader.jar:2.2.1.GA]

          at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1172) [jboss-classloader.jar:2.2.1.GA]

          at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.1.GA]

          at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.1.GA]

          at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.1.GA]

          at java.lang.ClassLoader.loadClass(ClassLoader.java:358) [:1.7.0_79]

          ... 91 more

       

       

       

      Both are using hibernate, One has hibernate bundled while the other uses the default hibernate that comes with Jboss. Please what can i do?