6 Replies Latest reply on Apr 7, 2003 4:11 PM by mzh

    Build error

    h2o_polo

      I was trying to build the latest Nukes with the following errors:

      _default:compile-classes:
      [mkdir] Created dir: C:\projects\jboss\nukes\nukes\output\classes
      [depend] Deleted 0 out of date files in 0 seconds
      [javac] Compiling 88 source files to C:\projects\jboss\nukes\nukes\output\classes
      [execmodules] C:\projects\jboss\nukes\nukes\output\gen\classes\org\jboss\nukes\core\modules\core\CoreModuleMBean.java:14
      : cannot resolve symbol
      [execmodules] symbol : class ObjectNameFactory
      [execmodules] location: package util
      [execmodules] public static final javax.management.ObjectName OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.creat
      e("nukes.modules:name=core");
      [execmodules] ^
      [execmodules] C:\projects\jboss\nukes\nukes\output\gen\classes\org\jboss\nukes\resources\ResourceCacheMBean.java:14: can
      not resolve symbol
      [execmodules] symbol : class ObjectNameFactory
      [execmodules] location: package util
      [execmodules] public static final javax.management.ObjectName OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.creat
      e("nukes:name=ResourceCache");
      [execmodules] ^
      [execmodules] C:\projects\jboss\nukes\nukes\output\gen\classes\org\jboss\nukes\core\modules\html\HtmlModuleMBean.java:14
      : cannot resolve symbol
      [execmodules] symbol : class ObjectNameFactory
      [execmodules] location: package util
      [execmodules] public static final javax.management.ObjectName OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory.creat
      e("nukes.modules:name=html");
      [execmodules] ^
      [execmodules] 3 errors

      BUILD FAILED
      file:C:/projects/jboss/nukes/nukes/../tools/etc/buildfragments/targets.ent:45: Compile failed; see the compiler error ou
      tput for details.


      I was looking for org.jboss.mx.util.ObjectNameFactory

      but there is no such thing in either nukes or jboss (head, 3.2RC1 or 3.2RC3). Is this a typo or am I missing something?

      Thanks,
      Alex.

        • 1. Re: Build error
          h2o_polo

          Cooper,

          I rhink there might be a typo in
          nukes\src\etc\mbean-custom.xdt

          instead of
          org.jboss.mx.util.ObjectNameFactory

          probably needs to be
          org.jboss.util.jmx.ObjectNameFactory

          After I fixed it I was able to build.

          Aelx.

          • 2. Re: Build error

            did you get a fresh version from CVS ?
            also it works only with jboss-3.2.0RC4 installed.

            cvs -z9 co nukes

            then you set JBOSS_HOME to your RC4 installed
            then you go to nukes/build and execute build.bat or build.sh

            julien

            • 3. Re: Build error

              it's not a typo. from RC3 to RC4, these utils
              classes have migrated to org.jboss.xm.util.

              get the RC4

              julien

              • 4. Re: Build error
                h2o_polo

                thanks, will do

                • 5. Re: Build error
                  crypto

                  I have a build error too but it seems a bit later.
                  I'm using jboss-3.2.0RC4 on WinXK SP1 with the latest cvs for nukes and i get :

                  _default:compile-classes:
                  [mkdir] Created dir: C:\WORKSP~1\nukes\banner\output\classes
                  [depend] Deleted 0 out of date files in 0 seconds
                  [javac] Compiling 5 source files to C:\WORKSP~1\nukes\banner\output\classes

                  _default:compile-etc:
                  [mkdir] Created dir: C:\WORKSP~1\nukes\banner\output\etc
                  [copy] Copying 3 files to C:\WORKSP~1\nukes\banner\output\etc

                  _default:compile-resources:
                  [copy] Copying 7 files to C:\WORKSP~1\nukes\banner\output\resources

                  compile:

                  output:
                  [mkdir] Created dir: C:\WORKSP~1\nukes\banner\output\lib

                  BUILD FAILED
                  file:C:/WORKSP~1/nukes/banner/build.xml:171: C:\WORKSP~1\nukes\banner\output\res
                  ources\nukes-banner-lib-jar not found.

                  Total time: 14 seconds
                  Press any key to continue . . .

                  • 6. Re: Build error
                    mzh

                    > BUILD FAILED
                    > file:C:/WORKSP~1/nukes/banner/build.xml:171:
                    > C:\WORKSP~1\nukes\banner\output\res
                    > ources\nukes-banner-lib-jar not found.

                    I stumbled upon the same error. The problem is: There are empty directories in the CVS. You need to do cvs update -d to get them.