3 Replies Latest reply on Jul 26, 2016 10:43 AM by ctomc

    how to get upgraded org.jboss.as.jmx:main in WildFly10

    kot.filemon

      I am trying to upgrade my application from JBoss 7 to WildFly10, and I am getting a warning:

      [0m[33m13:53:36,641 WARN [org.jboss.as.dependency.private] (MSC service thread 1-6)

      WFLYSRV0018: Deployment "deployment.mywar.war" is using a private module ("org.jboss.as.jmx:main")

      which may be changed or removed in future versions without notice.

      The module is mentioned in jboss-deployment-structure.xml as follows:

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure  >

      <deployment>

           <dependencies>

                <module name="org.jboss.as.jmx"/>

           </dependencies>

      </deployment>

      </jboss-deployment-structure>

      how is called the new module for jmx? I tried to replace that with org.jboss.remoting-jmx but then I got

      Invocation of init method failed; nested exception is javax.management.JMRuntimeException:

      Failed to load MBeanServerBuilder class org.jboss.as.jmx.PluggableMBeanServerBuilder: java.lang.ClassNotFoundException:

      org.jboss.as.jmx.PluggableMBeanServerBuilder


        • 1. Re: how to get upgraded org.jboss.as.jmx:main in WildFly10
          ctomc

          You got warning message as you are using internal "non-public" modules from application server.

          Which just tells you that you should be careful with this.

          Module is still available just fine, you can use as you did in as 7 but we just log warning that tells you that it can be removed, changed, moved, ... in later versions.

           

          In short, everything still works and you should not worry to much about it.

          • 2. Re: how to get upgraded org.jboss.as.jmx:main in WildFly10
            kot.filemon

            sure.

             

            do you know the name of "public" module that could be a replacement for that module?

            • 3. Re: how to get upgraded org.jboss.as.jmx:main in WildFly10
              ctomc

              Marcin M wrote:

              do you know the name of "public" module that could be a replacement for that module?

              There is no replacement module, code you are using is *is* jmx subsystem internal code.

              It was always subsystem internal code and as such private to application server.

              We just started properly notifying users of such modules that they are private and can change in future.

              jmx subsystem as such is not going away it is here to stay for long time. So you should be just fine.