Hi,
I am having a problem whereby I outject a 'User' entity in my authenticate-method but trying to subsequently inject the 'User' entity in a different component results in the error :
javax.ejb.EJBTransactionRolledbackException: @In attribute requires non-null value.
This is where the 'User' entity is outjected :
@Stateless
@Name("authenticator")
@JndiName(value="java:app/seam-webcontroller/AuthenticatorBean")
public class AuthenticatorBean implements Authenticator {
@Logger
private Log logger = Logging.getLog(AuthenticatorBean.class);
@In
Identity identity;
@In
Credentials credentials;
@In(value = "authorisationManager", create = true)
AuthorisationManager authManager;
@Out(value = "user", scope = ScopeType.SESSION, required = true)
User user;
And this is how I inject it :
@Stateful
@Scope(ScopeType.CONVERSATION)
@Name(value="vehicleListAction")
@JndiName(value="java:app/seam-webcontroller/VehicleListActionBean")
public class VehicleListActionBean implements VehicleListAction {
@Logger
private Log logger;
@In(value="user", scope=ScopeType.SESSION, required=true)
private User user;
Can anyone advise what I am doing wrong?