0 Replies Latest reply on Nov 15, 2005 9:04 AM by Martin Jamszolik

    EJB3 Deployment Exceptions accur even with DVD example

    Martin Jamszolik Newbie

      Hi everyone, my name is Martin. I have been trying to deploy ejb3 with swing client for 4 days now still unsuccessful. Here is my new found problem that i can't solve again.

      I run Ubuntu Linux 2.6.12
      JDK1.5
      and Self compiled JBoss 4.0.3 sp1

      since i am having trouble deploying my own ejb3 i reverted back to the DELL DVD example from trailblazer and this is what i get

      08:56:16,767 INFO [SettingsFactory] Default entity-mode: POJO
      08:56:16,830 INFO [SessionFactoryImpl] building session factory
      08:56:16,835 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=dvd.par
      java.lang.NoClassDefFoundError: org/jboss/cache/TreeCacheMBean
       at org.jboss.ejb3.entity.TreeCacheProviderHook.start(TreeCacheProviderHook.java:68)
       at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:174)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)
       at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358)
       at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484)
       at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:202)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:78)
       at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:512)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:253)
       at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
      




      There are other exceptions :

      08:56:16,992 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=com.jboss.dvd.ejb.DvdManagerBean
      java.lang.RuntimeException: unable to find: java:/managedEntityFactories/dvd
       at org.jboss.ejb3.injection.PersistenceContextHandler.getManagedEntityManagerFactory(PersistenceContextHandler.java:85)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldInjectors(PersistenceContextHandler.java:169)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadInjectors(PersistenceContextHandler.java:134)
       at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:397)
      



      Among other errors :
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:service=EJB3,name=com.jboss.dvd.ejb.DvdManagerBean
       State: FAILED
       Reason: java.lang.RuntimeException: unable to find: java:/managedEntityFactories/dvd
      
      ObjectName: jboss.j2ee:service=EJB3,name=com.jboss.dvd.ejb.DvdStoreBean
       State: FAILED
       Reason: java.lang.RuntimeException: unable to find: java:/managedEntityFactories/dvd
      
      ObjectName: jboss.j2ee:service=EJB3,module=dvd.par
       State: FAILED
       Reason: java.lang.NoClassDefFoundError: org/jboss/cache/TreeCacheMBean
      


      I guess i will need to reinstall JBOSS.

      in meantime anyone have a clue what causes the problem, assuming that the DVD example is at no fault. and that the Database connection was made