Hi lance, I'm just using constructor injection. I have a DAO that uses public class GenericDAO { private final Session session;
public GenericDAOImpl(Session session) { this.session = session; } } in my Module I have @Scope(ScopeConstants. PERTHREAD) public static FullTextSession buildFullTextSession(HibernateSessionManager sessionManager) { return Search.getFullTextSession(sessionManager.getSession()); } In my test class private Registry registry; private GenericDAO genericDAO; private EmailService emailService; @BeforeClass protected void before() { registry = buildRegistry(AppModuleTest. class, HibernateCoreModule.class); emailService = registry.getService(EmailService.class); genericDAO = registry.getService(GenericDAO.class); buildData(); } @Test public void SomeTest() { genericDAO.get(...) } When I run the test I get that exception. If I remove FullTextSession from the module or the genericDAO, problem goes away. The strange part is this is not an issue with the rest of the app, only the test. On Tue, Sep 9, 2014 at 2:31 PM, Lance Java <lance.j...@googlemail.com> wrote: > From my understanding of the tapestry registry, these are two distinct > services (even though one extends the other). > > Where is this exception occurring? Are you using tapestry's @Inject > annotation? Is spring ioc in the mix somewhere? > -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York