tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Carrera <>
Subject Re: Help with OpenEJB3 and Spring IoC
Date Mon, 09 Jun 2008 22:53:14 GMT

I went for the naughty option for printing out the classpath and it worked
from within the test case, but didn't work with the bean factory. Apparently
the problem is in org.springframework.test.jpa.AbstractJpaTests which
internally uses
org.springframework.test.jpa.OrmXmlOverridingShadowingClassLoader (which by
the way isn't a subclass of URLClassLoader, so the PrintClasspath class
didn't work here) and for some reason is not able to find the required
classes. I solved the problem by replacing AbstractJpaTests with
org.springframework.test.AbstractTransactionalSpringContextTests. Now my
tests run just fine.

I also changed the factories as you suggested so that OpenEjb was
initialized by spring.

Hope this can be of use for others.

Thanks David and keep up the great job.

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message