On Wed, Apr 21, 2010 at 9:57 AM, Viet Nguyen <phamquocv...@gmail.com> wrote:
> No bean named 'org.hisp.dhis.user.CurrentUserService' is defined > > That bean is defined in dhis-service-user-hibernate module > This can be solved by add the dependency in the dhis-service-core pom file > > <dependency> > <groupId>org.hisp.dhis</groupId> > <artifactId>dhis-service-user-hibernate</artifactId> > </dependency> > > But as discussed , I will have to apply AOP for this audit trail logging, > then I will remove the CurrentUserService from other service classes that > use audit logging ( User, DataSet, Orgunit ) , then this error will be > removed. > Lars, is it ok to change the pom file just for the time being.... ? > > I've been waiting for this moment to come... This reveals a weakness in the dependency structure in the system which I have been pondering on how to solve. The CurrentUserService resides in dhis-service-user, which has a dependency to dhis-service-core. This means that core cannot have a dependency to user. The reason for this is that User has an association to OrganisationUnit + UserRole has an association to DataSet, which requires the former dependency. Not sure about a quick fix here. I guess this is pretty urgent, will work on it... Lars
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp