4 Replies Latest reply on Jul 10, 2003 4:56 PM by carstens

    Error while building 3.2.1

    carstens

      Hello,
      after downloading jboss-3.2.1-src.tgz I get an error on executing jboss-3.2.1-src/build/build.sh.

      file:/jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/common/build.xml:239: The task doesn't support the nested "mbeaninterface" element.

      Anyone any idea what is going wrong? I would like to change some modules, so I would like to recompile some parts of the server (messaging).


      Cheers
      Carsten

        • 1. Re: Error while building 3.2.1
          rp0428

          No definitive answer for you yet but:

          I looked at mh 3.2.2 source and the task is in a section of the build.xml that is trying to use xdoclet to build all of the mbeans.

          The error message you provided is the type of error you would expect from DTD validation: an 'mbeaninterface' element is not allowed within a 'jmxdoclet' element.

          My source download doesn't appear to reference or use a DTD and I don't know if you can use a DTD with ant.

          Is it possible that you have a different, perhaps older, version of xdoclet than what is required?

          I will keep looking and repost if I find anything definitive.

          • 2. Re: Error while building 3.2.1
            carstens

            Hi,
            using xdoclet 1.1.2 as is required.

            After setting an env-variable 'ANT_DEBUG=true' I got some more information.
            The call to start ant is (I split the classpath for better readability):

            '/usr/java/jdk1.3.1_08/bin/java
            ' -classpath /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/xml-apis.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/xercesImpl.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/xalan.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/saxon.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/remote-mbeanserver.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/pretty.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/optional.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/junit.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/crimson.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/buildmagic-tasks.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/bsf.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/ant.jar:
            ' /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools/lib/JavaStyle.jar:
            ' .:
            ' /jboss/xjavadoc-1.0/xjavadoc-1.0.jar:
            ' /jboss/xdoclet-1.1.2/lib/xdoclet.jar:
            ' /jboss/junit3.8.1/junit.jar:
            ' /jboss/jakarta-log4j-1.2.8/dist/lib/log4j-1.2.8.jar:
            ' /usr/java/jdk1.3.1_08/lib/tools.jar
            ' -Dant.home=/jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/tools
            ' -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
            ' -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl
            ' -Djava.protocol.handler.pkgs=org.jboss.net.protocol
            ' -Dbuild.script=./build.sh org.apache.tools.ant.Main
            ' -find build.xml

            After that the following messages appear:

            'Searching for build.xml ...
            'Buildfile: /jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/messaging/build.xml
            'Trying to override old definition of task property
            '
            '_buildmagic:init:
            '
            '_buildmagic:init:buildlog:
            '
            'configure:
            '
            'init:
            '
            'compile-mbean-sources:
            '
            'BUILD FAILED
            'file:/jboss/srcs/jboss-3.2.1/jboss-3.2.1-src/messaging/build.xml:332:
            'The task doesn't support the nested "mbeaninterface" element.

            • 3. Re: Error while building 3.2.1
              carstens

              > I looked at mh 3.2.2 source and the task
              > is in a section of the build.xml that is trying to
              > use xdoclet to build all of the mbeans.
              >
              > The error message you provided is the type of error
              > you would expect from DTD validation: an
              > 'mbeaninterface' element is not allowed within a
              > 'jmxdoclet' element.
              >

              According to the XDoclet-API, the class:

              xdoclet.modules.jmx.JMXDocletTask

              (used for the -task) has a method

              createMbeaninterface()

              What is wondering me, is that the build.xml uses xdoclet.modules.jmx... but the api claims its xdoclet.jxm...

              • 4. Re: Error while building 3.2.1
                carstens

                Ok,
                think got the error.
                Had set ANT_HOME and a CLASSPATH including the xdoclet-1.1.2.jar.
                Without any environment variables (except JAVA_HOME) compilation works. :)
                A small success.