openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Pestano <>
Subject UnsatisfiedResolutionException Api type is not found with the qualifiers
Date Wed, 27 Jun 2012 11:13:20 GMT
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:

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:}

here is the interface: 

public interface UsuarioService extends BaseService<Usuario, Long>{  }

here is the superclass:

public class CustomHibernateService<T,K extends Serializable> extends BaseCustomServiceImpl<T,
K> implements BaseService<T, K> {code and related classes here:

the qualifier:

public @interface CustomService {

    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):

also in this project i have no problems with this approach:

and here is the project where it is failing: (note
that im 'workaround' the exception by injecting specific services)

thanks in advance.

Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS

View raw message