3 Replies Latest reply on Aug 3, 2012 10:33 AM by thinksteep thinksteep

    org.jboss.as:jboss-as-controller-client artifacts

    thinksteep thinksteep Novice

      Hi Community,  We are not using maven. How can I get artifacts for "org.jboss.as:jboss-as-controller-client" to write a java client using "Native Management API"?  https://docs.jboss.org/author/display/AS7/The+native+management+API#  As well as isn't this mechanism little bit difficulty comparing with "JMXConnector" API to get stats for a component of subsystem? Any input will be really appreciated.  Thank you,

        • 1. Re: org.jboss.as:jboss-as-controller-client artifacts
          thinksteep thinksteep Novice

          I have downloaded jboss-as-controller-client-7.1.1.Final.jar from maven.

           

          When I try to execute following code  

           

          public class MyTestClass{     

          public static void main(String[] args) throws UnknownHostException {       

                      ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 4447);  

              } }

           

          I am getting following exception. Not sure what other jars need to be added to class path. 

           

          Caused by: java.lang.ClassNotFoundException: org.jboss.threads.JBossThreadFactory   

            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)   

            at java.security.AccessController.doPrivileged(Native Method)   

            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)    

          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)   

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)    

          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)   

            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)      ... 4 more Java Result: 1

          • 2. Re: org.jboss.as:jboss-as-controller-client artifacts
            Stephen Coy Master

            Hi there,

             

            I've been using these jars:

             

            jboss-as/modules/org/jboss/as/controller-client/main/jboss-as-controller-client-7.1.1.Final.jar,
            jboss-as/modules/org/jboss/dmr/main/jboss-dmr-1.1.1.Final.jar,
            jboss-as/modules/org/jboss/threads/main/jboss-threads-2.0.0.GA.jar,
            jboss-as/modules/org/jboss/as/protocol/main/jboss-as-protocol-7.1.1.Final.jar,
            jboss-as/modules/org/jboss/remoting3/main/jboss-remoting-3.2.3.GA.jar,
            jboss-as/modules/org/jboss/logging/main/jboss-logging-3.1.0.GA.jar,jboss-as/modules/org/jboss/xnio/main/xnio-api-3.0.3.GA.jar,
            jboss-as/modules/org/jboss/xnio/nio/main/xnio-nio-3.0.3.GA.jar,
            jboss-as/modules/org/jboss/sasl/main/jboss-sasl-1.0.0.Final.jar,
            jboss-as/modules/org/jboss/marshalling/main/jboss-marshalling-1.3.11.GA.jar,
            jboss-as/modules/org/jboss/as/controller/main/jboss-as-controller-7.1.1.Final.jar,
            jboss-as/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.2.GA.jar
            • 3. Re: org.jboss.as:jboss-as-controller-client artifacts
              thinksteep thinksteep Novice

              Thanks Stephen!   Adding these jars resolved the issue. Moving to next level retrieving data.  Thank you,