2 Replies Latest reply on Aug 18, 2005 2:54 AM by Raphael Parree

    EJB3 stateless session bean not deploying correctly

    David Loeffler Newbie

      I am using jboss 4.0.3RC1 with EJB3 support in all deployment.

      I have defined a stateless entity bean using JbossIDE 1.5M2

      When deploying the ear file I get this message for the stateless session bean in the log.

      ...
      23:06:30,100 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=com.oreilly.jbossnotebook.todo.ejb3.TaskMasterBean
      java.lang.NullPointerException: factory must not be null
       at org.jboss.ejb3.entity.InjectedEntityManager.<init>(InjectedEntityManager.java:40)
       at org.jboss.ejb3.injection.PersistenceContextHandler.bindEntityManagerToEnc(PersistenceContextHandler.java:136)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldInjectors(PersistenceContextHandler.java:158)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadInjectors(PersistenceContextHandler.java:127)
      


      The bean looks like
      public @Stateless class TaskMasterBean implements TaskMaster {
      
       @PersistenceContext
       protected EntityManager manager;
      ...
      }
      


      Just what does factory must not be null