0 Replies Latest reply on Dec 12, 2005 3:24 AM by Sadr Lufti Mufreni

    Service error and java:/managedEntityFactories

    Sadr Lufti Mufreni Newbie

      I make some program like this

      import org.jboss.annotation.ejb.Management;
      import org.jboss.annotation.ejb.Service;

      @Service(objectName="segl:service=TaskContainerJMXMBean")
      @Management(TaskContainerJMX.class) //give me error in this line with this attribute is not defined in Management
      public class TaskContainerJMXMBean implements TaskContainerJMX {
      String workingDirectory = "";

      public void setWorkflowDirectory(String directory) {
      workingDirectory = directory;
      }

      public void create() throws Exception {
      System.out.println ("Create");
      }

      public void start() throws Exception {
      System.out.println ("Start");
      }

      public void stop() throws Exception {
      System.out.println ("Stop");
      }

      public void destroy() throws Exception {
      System.out.println ("Destroy");
      }

      }


      and if I erased that interface.class and I deployed in JBoss4.0.3SP1, then it gave me this error

      09:16:47,839 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=edu.hlrs.segl.sb.TaskContainerBean
      java.lang.RuntimeException: unable to find: java:/managedEntityFactories/SEGL
      at org.jboss.ejb3.injection.PersistenceContextHandler.getManagedEntityMa
      nagerFactory(PersistenceContextHandler.java:85)
      at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldInjectors
      (PersistenceContextHandler.java:169)
      at org.jboss.ejb3.injection.PersistenceContextHandler.loadInjectors(Pers
      istenceContextHandler.java:134)
      at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:397)
      at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:330)
      at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:283)
      at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:48)
      at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.
      java:63)
      at org.jboss.ejb3.stateless.StatelessManager.startService(StatelessManag
      er.java:93)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)

      what kind of error is this?

      thanks before for your help