7 Replies Latest reply on Apr 15, 2009 11:35 AM by Peter Johnson

    java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateEx

    Rasa Here Novice

      Hi ,

      I was trying to upgrade jboss 3.2* to 4.2.3 GA, i have configured everything but when i started the server i got following error in CONSOLE.

      20:28:03,245 WARN [EJBDeployer] Verify failed; continuing
      java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException
       at java.lang.Class.getDeclaredMethods0(Native Method)
       at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
       at java.lang.Class.privateGetPublicMethods(Class.java:2519)
       at java.lang.Class.getMethods(Class.java:1406)
       at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:686)
       at org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifier20.java:848)
       at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:78)
       at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:181)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:594)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy32.create(Unknown Source)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
      

      I have four jar files related with hibernate in defualt/lib folder. That are
      1) hibernate3.jar
      2) hibernate-annotations.jar
      3) hibernate-entitymanager.jar
      4) boss-hibernate.jar

      Still what is the issue, i am not able to understand. Please Help me to find a solution.

      Thanks
      Rasa