Wildfly 8.2.0
I have a Stateless
EJB and an interface.
@Local
@Stateless
public class Bean implements IBean{
...
}
@Local
public interface IBean {
...
}
But I get a WELD Error. If Bean doesn't implement the interface there is no errors. According to https://mcmap.net/q/832472/-can-an-ejb-bean-implement-multiple-interfaces and https://blogs.oracle.com/arungupta/entry/what_s_new_in_ejb there should be no error.
Error:
WELD-001408: Unsatisfied dependencies for type Bean with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private mypackage.anotherBean.bean
Update:
I've tried all possible combinations with Local
but it doesn't help. Only if interface is removed there is no error.
@Stateless
public class Bean implements IBean{
...
}
@Local
public interface IBean {
...
}
//*****************************
@Stateless
public class Bean implements IBean{
...
}
public interface IBean {
...
}
//************************************
@Local
@Stateless
public class Bean implements IBean{
...
}
public interface IBean {
...
}