0 Replies Latest reply on Mar 7, 2007 11:52 AM by juergen.zimmermann

    JBoss 4.2.0CR1: Servlet doesn't find annotated Session Bean

    juergen.zimmermann

      I have a stateless session bean annotated as follows:

      @Stateless
      @Local(KundenverwaltungLocal.class)
      public class KundenverwaltungBean implements KundenverwaltungLocal { ...


      In a servlet I have this @EJB annotation:
      public class EinfachesServlet extends HttpServlet {
       @EJB
       private KundenverwaltungLocal kv;
       ...


      However, the servlet's private attribute is null. What's my mistake? Any hint is appreciated!

      BTW, web.xml has the version numbering for 2.5