Hi,
I am getting WELD-001408: Unsatisfied dependencies for type AsyncBean with qualifiers @Default at injection point [BackedAnnotatedField] @Inject when I deploy ear file. EAR contanin ejb,jar and web.war files. This occurred after I added an asynchronous bean to test that feature.
Here is the sample code I used to check asynchronous feature:
@Asynchronous
// This makes all business methods in the class async
public
class
AsyncBean{
@Asynchronous
//To make only this method async
public
void
doAsyncStuff(){
}
}
This EJB is callled from servlet after injecting it:
@Inject
private AsyncBean asyncBean;
What may be wrong?
Thanks!
This problem solved when I added @Stateless annotation on AsyncBean.