3 Replies Latest reply on Dec 5, 2006 10:46 AM by David Rabinowitz

    Hibernate not Working

    Alexander Hachmann Newbie

      Hello There,
      I am having a slight problem and hope that anyhone has a solution for this.

      As I try to install JBoss-4.0.4 with EJB 3.0 RC9 from console for the reason that i have no x-windows I need to patch EJB 3.0 with ant.

      This worked fine on my small debian distri in VM-Ware.

      No i have to install the system un our real server and have the following Problem when Deploying an EJB with Entity Beans alltough I went through the exact same steps. Even the JDK is the same (jdk-1.5.0.8)

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=Syndication.ear,jar=SyndicationEJB.jar,unitName=SyndicationUnit
       State: FAILED
       Reason: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/hibernate/MappingNotFoundException
       I Depend On:
       jboss.jca:service=DataSourceBinding,name=SyndicationMySQL
       Depends On Me:
       jboss.j2ee:ear=Syndication.ear,jar=SyndicationEJB.jar,name=SyndikationHomeImpl,service=EJB3
      
      ObjectName: jboss.j2ee:ear=Syndication.ear,jar=SyndicationEJB.jar,name=SyndikationHomeImpl,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:ear=Syndication.ear,jar=SyndicationEJB.jar,unitName=SyndicationUnit
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:ear=Syndication.ear,jar=SyndicationEJB.jar,unitName=SyndicationUnit
       State: FAILED
       Reason: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/hibernate/MappingNotFoundException
       I Depend On:
       jboss.jca:service=DataSourceBinding,name=SyndicationMySQL
       Depends On Me:
       jboss.j2ee:ear=Syndication.ear,jar=SyndicationEJB.jar,name=SyndikationHomeImpl,service=EJB3
      


      I took a look in the Lib-directories. All Hibenate libs that exist on the one vmware do exist on the server aswell. What am I missing?

      Thanks for any Help,
      Alexander