Hi Rafael! How do you start the app and which environment do you use?
What I found out is that Hibernate uses a different javassist version than we do... That's certainly not perfect. We should shade it away in the best case. LieGrue, strub ----- Original Message ----- > From: Rafael Pestano <[email protected]> > To: "[email protected]" <[email protected]> > Cc: > Sent: Friday, June 29, 2012 1:16 PM > Subject: Re: UnsatisfiedResolutionException Api type is not found with the > qualifiers > > Hi Mark, > > but CustomHibernateService has the @CustomService and implements BaseService, > why it is not resolved? > > the idea in that case is to use the base implementation. I will use the > UsuarioServiceImpl when i have business logic involved but when i just need > to > crud an entity then ill just use the base CustomHibernateService. > > > > @See: > > Att, > Rafael M. Pestano > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul > Graduando em Ciência da Computação UFRGS > http://code.google.com/p/jsf-conventions-framework/ > http://rpestano.wordpress.com > http://twitter.com/realpestano > > > > ----- Mensagem original ----- > De: Mark Struberg <[email protected]> > Para: "[email protected]" > <[email protected]> > Cc: > Enviadas: Sexta-feira, 29 de Junho de 2012 3:47 > Assunto: Re: UnsatisfiedResolutionException Api type is not found with the > qualifiers > > Only quickly looked through the small blocks you posted, but so far it looks > like the following > > > CustomService is not @Inherited, thus - according to java annotation rules - > it > does not apply to UsuarioServiceImpl. > > Which in turn means that the UsuarioServiceImpl only has a @Default qualifier > and thus cannot be found. > > Please try to annotate your UsuarioServiceImpl with @CustomService and tell > us > if that changed the game. > > > LieGrue, > strub > > > > ----- Original Message ----- >> From: Rafael Pestano <[email protected]> >> To: "[email protected]" > <[email protected]> >> Cc: >> Sent: Wednesday, June 27, 2012 1:13 PM >> Subject: UnsatisfiedResolutionException Api type is not found with the > qualifiers >> >> Hi everyone, >> >> im facing an issue with OWB(works with weld) that i cant inject a field and > i >> want to know if im doing something wrong, the stacktrace can be found >> here: http://pastebin.com/Uq5ujzWC >> >> Ill try to explain what im doing: >> >> Here is the implementation of the class which is failing to be injected. >> >> public class UsuarioServiceImpl extends CustomHibernateService<Usuario, >> Long> implements UsuarioService {code >> > here:https://github.com/rmpestano/conventions-issuetracker/blob/master/src/br/com/triadworks/issuetracker/service/impl/IssueServiceImpl.java} >> >> here is the interface: >> >> public interface UsuarioService extends BaseService<Usuario, Long>{ > } >> >> here is the superclass: >> >> @Named >> @CustomService >> public class CustomHibernateService<T,K extends Serializable> extends > >> BaseCustomServiceImpl<T, K> implements BaseService<T, K> {code > and >> related classes >> > here:http://code.google.com/p/jsf-conventions-framework/source/browse/ConventionsCore/src/main/java/com/jsf/conventions/service/impl/CustomHibernateService.java >> } >> >> the qualifier: >> >> @Qualifier >> @Retention(RUNTIME) >> @Target({METHOD, FIELD, PARAMETER, TYPE}) >> public @interface CustomService { >> >> @Nonbinding >> Class entity() default byte.class; >> } >> >> and finally the injection point: >> >> >> @Inject @CustomService(entity=Usuario.class) >> private BaseService usuarioService; >> @Inject @CustomService(entity=Projeto.class) >> private BaseService projetoService; >> >> >> Do you have any idea? if you need more information just tell me. >> >> here is the project where this injection works(weld as cdi >> > impl): https://github.com/rpestano/conventions-issuetracker/blob/master/issuetracker/src/br/com/triadworks/issuetracker/controller/ComboBean.java >> >> also in this project i have no problems with this >> > approach: http://code.google.com/p/jsf-conventions-framework/source/browse/ConventionsShowcase/src/main/java/com/jsf/conventions/showcase/controller/ComboMBean.java >> >> and here is the project where it is >> > failing: https://github.com/rmpestano/conventions-issuetracker/blob/master/src/br/com/triadworks/issuetracker/controller/ComboBean.java (note > > >> that im 'workaround' the exception by injecting specific services) >> >> thanks in advance. >> >> Att, >> Rafael M. Pestano >> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul >> Graduando em Ciência da Computação UFRGS >> http://code.google.com/p/jsf-conventions-framework/ >> http://rpestano.wordpress.com >> http://twitter.com/realpestano >> >
