8 Replies Latest reply on Feb 13, 2002 2:22 PM by doogie

    Is it possible to build jmx standalone?

    doogie

      I feel it would be nice to have jboss' jmx be compiled as a standalone project. This would help other projects(aka tomcat/catalina) that require jmxri.jar.

      I've checked out the jmx module from cvs HEAD, but get the following error:

      adam@gradall:~/brainfood/jboss/cvs/jmx$ ./build.sh -verbose
      Ant version 1.4.1 compiled on February 10 2002
      Searching for build.xml ...
      Buildfile: /home/adam/brainfood/jboss/cvs/jmx/build.xml
      Detected Java version: 1.3 in: /usr/lib/j2re1.3
      Detected OS: Linux
      parsing buildfile /home/adam/brainfood/jboss/cvs/jmx/build.xml with URI = file:/home/adam/brainfood/jboss/cvs/jmx/build.xml
      Project base dir set to: /home/adam/brainfood/jboss/cvs/jmx
      resolving systemId: resource://planet57/tools/buildmagic/common.xml

      BUILD FAILED

      Error reading project file
      at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:148)
      at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
      at org.apache.tools.ant.Main.runBuild(Main.java:439)
      at org.apache.tools.ant.Main.start(Main.java:153)
      at org.apache.tools.ant.Main.main(Main.java:176)
      --- Nested Exception ---
      java.net.MalformedURLException: unknown protocol: resource
      at java.net.URL.(URL.java:480)
      at java.net.URL.(URL.java:376)
      at java.net.URL.(URL.java:330)
      ...

        • 1. Re: Is it possible to build jmx standalone?
          davidjencks

          Do you have the tools directory also checked out? it is used in the build system.

          • 2. Re: Is it possible to build jmx standalone?
            doogie

            Ah, nope. Maybe a nice helper module in CVSROOT/modules would help things like this.

            JBoss has lots of nice, useful sub-projects, that can be used by themselves(embedded in other apps).

            • 3. Re: Is it possible to build jmx standalone?
              doogie

              Ok, that helpped. Now, I get this when running ./build.sh(I have jmx/tools, jmx/src, etc).

              I know this needs some other module from cvs. which is it? log4j, jdom, junit, are also not found.

              compile-classes:
              [javac] Compiling 277 source files to /home/adam/brainfood/jboss/cvs/jmx/output/classes
              [javac] /home/adam/brainfood/jboss/cvs/jmx/src/main/javax/management/timer/Timer.java:21: cannot resolve symbol
              [javac] symbol : class ConcurrentReaderHashMap
              [javac] location: package concurrent
              [javac] import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap;
              [javac] ^
              [javac] /home/adam/brainfood/jboss/cvs/jmx/src/main/javax/management/timer/Timer.java:102: cannot resolve symbol
              [javac] symbol : class ConcurrentReaderHashMap
              [javac] location: class javax.management.timer.Timer
              [javac] ConcurrentReaderHashMap notifications = new ConcurrentReaderHashMap();
              [javac] ^


              Ah, I see. This is what I had to do to get it to compile:

              ./build.sh -Dproject.thirdparty=/home/adam/brainfood/jboss/cvs/jmx/thirdparty/ -Dmodule.source=`pwd`/src -Dmodule.output=`pwd`/output

              Now, I can make a separate package of this, so that tomcat4(which I am not packaging, someone else is) can make the catalina mbeans, and then I can make jboss-catalina-service.

              • 4. Re: Is it possible to build jmx standalone?
                squirest

                > Ah, nope. Maybe a nice helper module in
                > CVSROOT/modules would help things like this.

                Ah,

                I was originally going to make a sarcastic comment but then I realised there's probably a naming issue here...

                Anyhow, the JMX work is beind done as JBoss-MX. So, there is a module jboss-mx you can use.

                I think it needs updating to pull in thirdparty/apache/log4j but I'm not sure...

                Trevor

                • 5. Re: Is it possible to build jmx standalone?

                  standalone jboss-mx should work now:

                  cvs -d : pserver:anonymous@cvs.jboss.sf.net:/cvsroot/jboss co jboss-mx
                  


                  -- Juha

                  • 6. Re: Is it possible to build jmx standalone?

                    Thanks Juha,

                    That was my fault :-(

                    I'll test my mods with the standalone version, not
                    just jboss-all in future.

                    Regards,
                    Adrian

                    • 7. Re: Is it possible to build jmx standalone?

                      no prob

                      • 8. Re: Is it possible to build jmx standalone?
                        doogie

                        Yup. jboss-mx module works fine. just run 'build/build.sh'.