[jboss-user] [EJB3] - Re: EJB 3.1, CDI, JSF 2 ERROR java.lang.NullPointerException

David Salter do-not-reply at jboss.com
Sat Mar 17 08:38:12 EDT 2012


David Salter [https://community.jboss.org/people/david.salter] created the discussion

"Re: EJB 3.1, CDI, JSF 2 ERROR java.lang.NullPointerException"

To view the discussion, visit: https://community.jboss.org/message/724463#724463

--------------------------------------------------------------
If you declare your bean as

    @EJB
    MyBean myBean;

then it should work correctly as the name will be looked up and injected correctly.

Also, if you're using EJB 3.1, then your business interfaces are optional.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/724463#724463]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120317/4c3679c5/attachment.html 


More information about the jboss-user mailing list