2 Replies Latest reply on Feb 25, 2008 11:03 AM by Peter Johnson

    MBeans waiting for other MBeans

    David Clark Newbie

      I am seeing this error when I start up my application (JBoss 4.0.2, OS 10.4.8, mySQL):

      ObjectName: jboss:service=Scheduler
      State: FAILED
      Reason: org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@594bee on mbean jboss:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class com.xxx.cyb.boot.PolicyNotificationScheduler is not not found)


      The class in question (PolicyNotificationScheduler) is loaded in a cyb.jar, bundled in the EAR. In my EAR/META-INF/application.xml:

      <applicatio n>
      <display-name>Project Description</display-name>

      <!-- java module -->
      <modul e>
      cyb.jar
      </modul e>
      ...
      </applicatio n>


      I have this service defined in /jboss/server/default/deploy/scheduler-service.xml:

      <m bean code="org.jboss.varia.scheduler.Scheduler"
      name=":service=Scheduler">
      <a ttribute name="StartAtStartup">true
      <a ttribute name="SchedulableClass">com.xxx.cyb.boot.PolicyNotificationScheduler
      <a ttribute name="SchedulableArguments">Policy Notication,60
      <a ttribute name="SchedulableArgumentTypes">java.lang.String,int
      <a ttribute name="InitialStartDate">1/1/70 5:00 PM MST
      <a ttribute name="SchedulePeriod">86400000
      <a ttribute name="InitialRepetitions">-1
      <d epends>jboss.j2ee:service=EJB,jndiName=PolicyManager
      <d epends>jboss.j2ee:service=EJB,jndiName=PlanManager
      <d epends>jboss.j2ee:service=EJB,jndiName=CRMManager
      </m bean>


      Does anyone know what is wrong with this configuration?

        • 1. scheduler problem
          riki barkiki Newbie

          Hello friend,
          I saw some post of you at the JBoss forum and I have a similar problem,
          I try to run the Scheduler example from the jboss site and it run o.k but when I restart the server I got this error

          I put some code at scheduler-service.xml


          true
          ejb.ExSchedulable
          TheName,123456789
          java.lang.String,long

          NOW
          4000
          1


          And create some class file at ejb package under the ejb lib

          package ejb;

          import java.util.Date;
          import org.jboss.varia.scheduler.Schedulable;

          import org.apache.log4j.Logger;

          public class ExSchedulable implements Schedulable
          {
          private static final Logger log = Logger.getLogger(ExSchedulable.class);

          private String name;
          private long value;

          private String response;

          public ExSchedulable(String name, long value)
          {
          this.name = name;
          this.value = value;
          log.info("ctor, name: " + name + ", value: " + value);
          }

          public void perform(Date now, long remainingRepetitions)
          {
          log.info("perform, now: " + now +
          ", remainingRepetitions: " + remainingRepetitions +
          ", name: " + name + ", value: " + value);
          response=SendAndReciveRequest.sendAndRecive("http://localhost:8080/SkillogicAS-war/CounterServlet");
          log.info("Response "+response);
          }
          }


          The error that show when the server start is

          --- MBeans waiting for other MBeans ---
          ObjectName: jboss.docs:service=Scheduler
          State: FAILED
          Reason: org.jboss.deployment.DeploymentException: Exception setting attribute SchedulableClass = ejb.ExSchedulable on mbean jboss.docs:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class ejb.ExSchedulable is not not found)


          10x a lot �

          • 2. Re: MBeans waiting for other MBeans
            Peter Johnson Master

            rikibarkiki, do NOT append unrelated questions to the end of someone else's post, especially not one that is 2 years old!