2 Replies Latest reply on Mar 7, 2005 3:34 AM by weelink

    [ServiceModule] Registration is not done -> stop

    weelink

      I'm using JMX for one of the applications I'm currently developing. When deploying one of de JAR-files, I sometimes get this message (and sometimes not):

      [ServiceModule] Registration is not done -> stop


      I get this message in JBoss 4.0.1SP1 and JBoss 4.0.1RC1 (the only two versions I've used, I don't know about older versions) using JDK 1.4.

      When I undeploy the JAR and then redeploy, the registration succeeds. Since I can't find anything about this message on the Internet, and it is highly unlikely that I am the only one who gets this message, I probably am doing something wrong.

      Because the files used are quite large, it's no use giving you some example code. Could someone give me a pointer as to where I should look for this message (e.g. classfiles, documentation etc) and what it could mean? When I know more about this, I might give you an example as to why it goes wrong.

        • 1. Re: [ServiceModule] Registration is not done -> stop
          weelink

          I located the source of the error:

          org.jboss.mx.server.registry.BasicMBeanRegistry.add(MBeanEntry entry)


          The used variables:

          ObjectName name = "jboss.management.local:J2EEServer=Local,j2eeType=ServiceModule,name=jboss-service.xml"
          String domain = "jboss.management.local"
          String props = "J2EEServer=Local,j2eeType=ServiceModule,name=jboss-service.xml"
          


          Then the InstanceAlreadyExistsException(name + " already registered."); is thrown.

          I don't know much about the JBoss internals, so I don't know why it is trying to register it again

          • 2. Re: [ServiceModule] Registration is not done -> stop
            weelink

            I moved jboss-service.xml from WEB-INF to META-INF en renamed the jar to .sar. It seems to work now.