geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericp56 <>
Subject EJB unit testing JPA projects
Date Mon, 17 Nov 2008 15:24:44 GMT

Hi All,

OpenEJB unit testing works great.

However, I am now trying to unit test a JPA EJB and get the following error:

Apache OpenEJB 3.0    build: 20080408-04:13
INFO - openejb.home = C:\eclipseRC3\workspace\ScrapEjb
INFO - openejb.base = C:\eclipseRC3\workspace\ScrapEjb
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=SchedulerDB2, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=SchedulerDB, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=Default JDK 1.3 ProxyFactory,
type=ProxyFactory, provider-id=Default JDK 1.3 ProxyFactory)
INFO - Found EjbModule in classpath:
INFO - Configuring app: C:\eclipseRC3\workspace\ScrapEjb\build\classes
INFO - Configuring Service(id=Default Stateless Container, type=Container,
provider-id=Default Stateless Container)
INFO - Auto-creating a container for bean ScrapClass:
Container(type=STATELESS, id=Default Stateless Container)
INFO - Auto-linking resource-ref 'SchedulerDB2' in bean ScrapClass to
INFO - Auto-linking resource-ref 'SchedulerDB' in bean ScrapClass to
INFO - Configuring PersistenceUnit(name=ScrapEjb)
INFO - Loaded Module: C:\eclipseRC3\workspace\ScrapEjb\build\classes
ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the following
stack trace and this message to :
 org.apache.xbean.recipe.ConstructionException: Error invoking factory
method: public static javax.sql.DataSource
Caused by: java.lang.NoClassDefFoundError:

OpenEjb-core.3.0.jar is included in the classpath, so the
BasicManagedDataSource is available.

What's happening here?

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message