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: 
http://www.nabble.com/Help-with-OpenEJB3-and-Spring-IoC-tp17674222p17744010.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to