1 Reply Latest reply on Feb 12, 2003 10:32 AM by milasx

    Start method not called on deployment

    milasx

      Hi,
      I have an MBean with this start method that does not appear to be called (JBoss 3.2.0 RC1):
      public void start() throws Exception
      {

      log.info("Help !!");
      System.out.println("Help Help !!");//to be deleted
      //lets try to cause an error
      String s = null;
      s.toString();
      super.start();
      }
      Also no NullPointerException reported.
      This is the log:
      2003-02-12 09:59:13,662 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.test.xdoclet:service=Sample with code: com.db.jbozz.server.test.JBossXMLExample
      2003-02-12 09:59:13,662 INFO [STDOUT] Constructed!!!!!!!!!!!!!!!!!
      2003-02-12 09:59:13,678 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.test.xdoclet:service=Sample
      2003-02-12 09:59:13,678 DEBUG [org.jboss.system.ServiceConfigurator] Id set to 5 in jboss.test.xdoclet:service=Sample
      2003-02-12 09:59:13,693 DEBUG [org.jboss.system.ServiceConfigurator] String set to this is a string in jboss.test.xdoclet:service=Sample
      2003-02-12 09:59:13,693 DEBUG [org.jboss.system.ServiceController] Creating service jboss.test.xdoclet:service=Sample
      2003-02-12 09:59:13,693 TRACE [org.jboss.system.ServiceController] Pushing NDC: jboss.test.xdoclet:service=Sample
      2003-02-12 09:59:13,693 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.test.xdoclet:service=Sample dependents are: []
      2003-02-12 09:59:13,693 DEBUG [org.jboss.deployment.SARDeployer] Create MBean, name: jboss.test.xdoclet:service=Sample, SAR Module: jboss.management.local:J2EEServer=Local,j2eeType=ServiceModule,name=mytest-service.xml
      2003-02-12 09:59:13,693 DEBUG [org.jboss.management.j2ee.MBean] getObjectName(), name: jboss.management.local:J2EEApplication= ,J2EEServer=Local,ServiceModule=mytest-service.xml,j2eeType=MBean,name=jboss.test.xdoclet%3aservice%3dSample
      2003-02-12 09:59:13,693 DEBUG [org.jboss.management.j2ee.MBean] postRegister(), parent: jboss.management.local:J2EEServer=Local,j2eeType=ServiceModule,name=mytest-service.xml
      2003-02-12 09:59:13,693 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying mytest-service.xml
      Thanks!!!!!