Hi Fritz, On 7/28/06, Fritz Meissner <[EMAIL PROTECTED]> wrote: > private @EJB ASessionLocal sessionBean; >
This should work. If you are in a different container (ie. VM) you will need to specify JNDI name, eg.: @EJB(name="ASessionLocal") public ASessionLocal sessionBean; A colleague of mine was have an issue earlier this week because the EJB annotation had been repackaged - it used to be javax.annotations.EJB (I think) and then became javax.ejb.EJB. He had a different library in his compile classpath to his runtime classpath and this caused him the exact same NullPointer in his Servlet injection that you are describing. Check that out. Lisa --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~---
