[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: [T5] Bug in HibernateModule?
From: Imants Firsts <imantsf () inbox ! lv>
Date: 2008-11-27 16:37:42
Message-ID: 1227803862.492eccd643715 () www ! inbox ! lv
[Download RAW message or body]
Hi!
I am getting the following exception if I have a service in my application that \
implements HibernateConfigurer and I contribute it to HibernateSessionSource.
org.apache.tapestry5.ioc.internal.OperationException
Service interface org.apache.tapestry5.hibernate.HibernateConfigurer is matched by 3 \
services: DefaultHibernateConfigurer, HibernateAdministration, \
HibernateInterceptorConfigurer. Automatic dependency resolution requires that exactly \
one service implement the interface.
The problem is fixed by adding the @InjectService("DefaultHibernateConfigurer") \
annotation to the contributeHibernateSessionSource defaultHibernateConfigurer \
parameter.
Current declaration:
public static void contributeHibernateSessionSource(OrderedConfiguration<HibernateConfigurer> \
config, HibernateConfigurer defaultHibernateConfigurer)
Fixed declaration:
public static void contributeHibernateSessionSource(OrderedConfiguration<HibernateConfigurer> \
config, @InjectService("DefaultHibernateConfigurer") HibernateConfigurer \
defaultHibernateConfigurer)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic