Hello I'm having problems understanding how to make tapestry-hibernate to work:
I've created the following library module: public class JFlyBusinessModule { public static void bind(ServiceBinder binder) { binder.bind(CAuditDAO.class, CAuditDAOImpl.class); binder.bind(CClientDAO.class, CClientDAOImpl.class); binder.bind(CUserDAO.class, CUserDAOImpl.class); binder.bind(AuditService.class, AuditServiceImpl.class); } public static void contributeAuditService(MappedConfiguration<String, String> contributions) { contributions.add("log.level", IAuditType.TYPE_WARN); } public static void contributeHibernateEntityPackageManager(Configuration<String> configuration) { configuration.add("it.wingstech.jflymodel"); } @Match( { "*DAO", "*Service" }) public static <T> T decorateTransactionally(HibernateTransactionDecorator decorator, Class<T> serviceInterface, T delegate, String serviceId) { return decorator.build(serviceInterface, delegate, serviceId); } } then my service constructor is: public AuditServiceImpl(Map<String, String> contributions, CAuditDAO auditDao, Session session, Logger logger) { super(session, logger); this.auditDao = auditDao; setLevel(CommonUtils.oneOf(contributions.get("log.level"), IAuditType.TYPE_INFO)); } when I try to start my tests I have the following message: java.lang.RuntimeException: Exception constructing service 'AuditService': Error invoking constructor it.wingstech.jflybusiness.services.AuditServiceImpl(Map, CAuditDAO, Session, Logger) (at AuditServiceImpl.java:39) via it.wingstech.jflybusiness.services.JFlyBusinessModule.bind(ServiceBinder) (at JFlyBusinessModule.java:34) (for service 'AuditService'): No service implements the interface org.hibernate.Session. I've seen into the sourcess that there is no service for org.hibernate.Session. So I'm wondering how my service is different from the one contained int tapestry-hibernate. I also wonder How could I have a Session per request, then. Please help me, 'cause I'm in a stale situation. Thanks in advance, kiuma --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org