7 Replies Latest reply on Oct 20, 2003 4:29 AM by juha

    Problem with WebService MBean

    Kari Kesänen Newbie

      I have my own MBean that is started just after when last of my ejbs is deployd (I have made dependency). Everything else work fine but WebService does not start anymore and JMX console shows only 4 registered MBeans! If I don't deploy my mbean WebService starts correcly. Starting my mbean takes about 1.5 minutes so can it cause some timeout problem?

      I have also tried to make this kind of dependendy to my mbean


      Then everything starts fine but JMX console still finds only 4 mbeans and after a while I will get exception that StateManager is not registered while trying to use JMS. It works few minutes ok (also JMS). I am using jboss 3.2.1 and JRE 1.4.2

      WebService problem:

      org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: jboss:service=WebService; - nested throwable: (javax.management.InstanceNotFoundException: jboss:service=WebService is not registered.)
      at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:79)
      at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:283)
      at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:248)
      at org.jboss.ejb.EjbModule.destroyService(EjbModule.java:359)
      at org.jboss.ejb.EjbModule.createService(EjbModule.java:308)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Btw. What kind of dependendy I need to define if I want my mbean to be started when everything else is up and running?

      Best regards,