2 Replies Latest reply on Apr 27, 2010 2:48 AM by Prakash M

    Jboss 5.1 - javax.management.MBeanRegistrationException: preRegister() failed

    Prakash M Novice

      I am getting the following errors while deploying the LoadIndicator.ear file in Jboss 5.1.

      Note: This was working in Jboss 4.2.3 without any exceptions.

      Please find the attached file for stack trace.

      It would be great, if any one provides some inputs to resolve this issue.

       

      Thanks,

      Prakash

        • 1. Re: Jboss 5.1 - javax.management.MBeanRegistrationException: preRegister() failed
          Marc Ende Newbie

          Hi,

           

          in your stacktrace it's shown javax.management.InstanceNotFoundException: Mands:service=LoadMonitor is not registered. So I think that you've got dependency on that service but it's not available (not yet or not anymore). As mentioned in another post you'll shoud define the dependencies between your services and other services, wars etc. which depends on them.

           

          Marc

          • 2. Re: Jboss 5.1 - javax.management.MBeanRegistrationException: preRegister() failed
            Prakash M Novice

            Hi,

            For more carity please refer the details below.

            Note: Mands is our cutom folder (renamed the default folder) for our project.

             

            loadindicator.ear

              |_ META-INF

                           |_ application.xml

                           |_ jboss-aop.xml

                           |_manifest.mf

             

            |_ loadindicator.sar  

                           |_ META-INF

                                          |_ jboss-service.xml

                                           |_manifest.mf

                           |_ classes (load indicator java classes)

                           |_ loadindicator-monitor-service.xml

             

            Contents of application.xml

             

            <application xmlns="http://java.sun.com/xml/ns/javaee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">

             

                <display-name>Mands Load Indicator</display-name>
                <module>
                    <ejb>loadindicator.sar</ejb>
                </module>
               
            </application>

             

            Contents of loadindicator-monitor-service.xml

            <mbean code="uk.co.choice.mands.jmx.GaugeMonitor"
                 name="Mands:service=LoadMonitor">

             

                <depends>Mands:service=LoadIndicator</depends>   
               
                <attribute name="ObservedObject">Mands:service=LoadIndicator</attribute>
                <attribute name="ObservedAttribute">TotalMessageDepth</attribute>
                <attribute name="GranularityPeriod">1000</attribute>
                <attribute name="NotifyHigh">true</attribute>
                <attribute name="NotifyLow">true</attribute>

             

              </mbean>

             

            </server>

             

            Thanks,

            Prakash