4 Replies Latest reply on Oct 21, 2008 11:54 PM by Sachin Parnami

    problem deploying app on JBoss-4.2.2 with upgraded hibernate

    sahaja chennamaneni Newbie

      Need help on grail app deployment in jboss. I am using grails1.0.3, JBoss-4.2.2 and Java6.

      I have updated hibernate jars in my application. My application web-inf/lib contains -

      hibernate-annotations.jar - ver -3.3.0.GA
      hibernate-commons-annotations.jar - ver-3.0.0.GA
      hibernate-validator.jar - ver-3.1.0.GA
      hibernate-search.jar - ver-3.1.0.Beta1
      hibernate3.jar ver-3.2.6.ga
      hibernate-entitymanager.jar - ver-3.4.0.GA


      I setup classloader isolation in jboss-web.xml -
      <loader-repository>
      gov.pacts.groovy:loader=myApp-0.1.war
      <loader-repository-config>
      java2ParentDelegation=false
      </loader-repository-config>
      </loader-repository>

      When I deploy the war file in JBoss4.2.2 I am getting the following error -

      Caused by: java.lang.NoClassDefFoundError: org/hibernate/event/Destructible
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
      at org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:247)

      Any help or suggestions why I am getting this error?