I have a problem with injection of EntityManager in my Authenticator class. 
When I login my EntityManager variable is null and I get NPE. In my environment 
I'm using jboss-4.0.5 and JSF 1.2 RI. I'm wondering if my authenticator class 
shouldn't be SFSB or SLSB in this case?

Here is part of my Authenticator class:
@Name("authenticator")
  | public class Authenticator {
  | 
  |     @Logger
  |     Log log;
  | 
  |     @Out(required = false, scope = SESSION)
  |     private User user;
  | 
  |     @PersistenceContext
  |     private EntityManager em;
  | 
  |     public boolean authenticate(String username, String password,
  |                     Set<String> roles) {
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010417#4010417

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010417
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to