0
I have an app EJB
who owns a lib jar
as a dependency built for code reuse. My . jar has a class that has been annotated with @RequestScoped
, and I need to retrieve it on my ejb.
I’m using the following line, someone knows why it doesn’t work?
MinhaClasse o = CDI.current().select(MinhaClasse .class).get();
return o.getNome();
Error code:
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308: Unable to resolve any beans for Type: class br.com.meuprojeto.jpa.MinhaClasse; Qualifiers: []
Your answer fixed My JAR did not have xml Beans.xml .
– Silas de Moraes
@OK, I’m glad you helped :). Please mark the answer as the solution and if possible vote for it. This will help me to grow here in stackoverflow. :D
– Jefferson Borges