4 Replies Latest reply on Oct 28, 2005 9:54 AM by bill.burke

    Embeddable EJB3 Alpha3 - Unknown entity: org.jboss.tutorial.

    marceloverdijk

      I tried the 'simple' example from Embedabble EJB3.0 Alpha 3 release but got the following error:

      20:06:24 DEBUG [KernelFactory.assembleNewKernel:68] Starting JBoss Kernel construction...
      20:06:25 DEBUG [KernelFactory.assembleNewKernel:94] Completed JBoss Kernel construction. Duration: 301 milliseconds
      20:06:26 WARN [XsdBinder.bindGlobalGroup:1097] NOT HANDLED WILDCARD IN GLOBAL MODEL GROUP
      20:06:28 INFO [LocalTxDataSource.bindConnectionFactory:102] Bound datasource to JNDI name 'java:/DefaultDS'
      20:06:29 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: ehcache
      20:06:30 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 631
      20:06:30 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: resources
      20:06:30 INFO [Ejb3Deployment.initializeManagedEntityManagerFactory:455] Found persistence.xml file in EJB3 jar
      20:06:30 DEBUG [IdleRemover.internalRegisterPool:112] internalRegisterPool: registering pool with interval 100000 old interval: 9223372036854775807
      20:06:30 DEBUG [IdleRemover.internalRegisterPool:123] internalRegisterPool: about to notify thread: old next: 1130436440838, new next: 1130436440838
      20:06:30 DEBUG [LocalManagedConnectionFactory.createManagedConnection:147] Using properties: {user=sa, password=--hidden--}
      20:06:30 DEBUG [LocalManagedConnectionFactory.getDriver:252] Checking driver for URL: jdbc:hsqldb:.
      20:06:30 DEBUG [LocalManagedConnectionFactory.isDriverLoadedForURL:304] Driver not yet registered for url: jdbc:hsqldb:.
      20:06:30 DEBUG [LocalManagedConnectionFactory.isDriverLoadedForURL:299] Driver already registered for url: jdbc:hsqldb:.
      20:06:32 INFO [Ejb3Deployment.initializeManagedEntityManagerFactory:533] Create EntityManager with JNDI name: custdb
      20:06:32 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 2434
      20:06:32 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: bin
      20:06:32 INFO [Ejb3AnnotationHandler.getContainers:137] found EJB3: ejbName=org.jboss.tutorial.simple.CustomerDAOBean, class=org.jboss.tutorial.simple.CustomerDAOBean, type=STATELESS
      20:06:32 DEBUG [Ejb3Deployment.registerContainer:249] Bound ejb3 container jboss.j2ee:service=EJB3,name=org.jboss.tutorial.simple.CustomerDAOBean
      20:06:32 DEBUG [StatelessManager.jbossInternalCreate:241] Creating StatelessManager
      20:06:33 INFO [JaccHelper.addPermissions:129] org.jboss.tutorial.simple.CustomerDAOBean has no @SecurityDomain - skipping JACC configuration
      20:06:33 DEBUG [StatelessManager.jbossInternalCreate:254] Created StatelessManager
      20:06:33 INFO [Ejb3Deployment.initializeManagedEntityManagerFactory:518] default entity manager name: bin
      20:06:34 INFO [Ejb3Deployment.initializeManagedEntityManagerFactory:533] Create EntityManager with JNDI name: bin
      20:06:34 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 1662
      20:06:34 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: conf
      20:06:34 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 0
      20:06:34 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: log4j-1.2.9
      20:06:35 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 661
      20:06:35 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: commons-logging-1.0.4
      20:06:35 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 60
      20:06:35 INFO [JaccHelper.initialiseJacc:46] Initialising JACC Context for deployment: junit
      20:06:35 INFO [Ejb3Deployment.create:268] EJB3 deployment time took: 210
      20:06:35 DEBUG [StatelessManager.jbossInternalStart:270] Starting StatelessManager
      20:06:35 DEBUG [UserTransactionImpl.:41] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@3f4ebd
      20:06:35 INFO [ProxyDeployer.start:64] no declared remote bindings for : org.jboss.tutorial.simple.CustomerDAOBean
      20:06:35 INFO [ProxyDeployer.start:67] there is remote interfaces for org.jboss.tutorial.simple.CustomerDAOBean
      20:06:35 INFO [ProxyDeployer.start:69] default remote binding has jndiName of org.jboss.tutorial.simple.CustomerDAORemote
      20:06:35 DEBUG [StatelessManager.jbossInternalStart:286] Started StatelessManager
      ----------------------------------------------------------
      This test scans the System Property java.class.path for all annotated EJB3 classes
      20:06:35 DEBUG [SecurityAssociation.:137] Using ThreadLocal: false
      20:06:35 DEBUG [ManagedEntityManagerFactory.getSession:129] GETTING NEW EntityManager
      20:06:35 DEBUG [ManagedEntityManagerFactory.getSession:140] logLivedSession.get() was NULL
      20:06:35 DEBUG [ManagedEntityManagerFactory.getSession:148] LONG LIVED NOT FOUND
      20:06:35 DEBUG [ManagedEntityManagerFactory.afterCompletion:103] ************** closing entity managersession **************
      20:06:35 ERROR [Main2.main:57] Error: javax.ejb.EJBException: null; CausedByException is:
      Unknown entity: org.jboss.tutorial.simple.Customer

      Maybe I'm missing something???
      I'm using the most basic configuration as from the examples. No changes made to persistence.xml or any config files in embedded-ejb/conf except log4j.xml. I'm a little bit puzzled with this one....

      Regards,
      Marcel