Compile Error in Tools

Help
slander
2012-10-15
2013-06-12
  • slander

    slander - 2012-10-15

    Hello and thanks for your work on OpenGTS.
    I am new. But I am following the bouncing ball as far as I can see…

    "ant all" gives me this

    tools:
         [echo] Tools ...
        [javac] Compiling 4 source files to /usr/local/OpenGTS_2.4.5/build
        [javac] error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.chromattic.apt.ChromatticProcessor could not be instantiated: java.lang.NoClassDefFoundError: org/reflext/apt/JavaxLangReflectionModel
    

    before terminating. What have I messed up?

    [root@moxa OpenGTS_2.4.5]# ant all
    Buildfile: build.xml
    clean:
       [delete] Deleting directory /usr/local/OpenGTS_2.4.5/build
    custom.jar:
         [echo] Skipping General Custom build ...
    customtrack.jar:
         [echo] Skipping Track Custom build ...
    custom:
    prepare:
        [mkdir] Created dir: /usr/local/OpenGTS_2.4.5/build
        [mkdir] Created dir: /usr/local/OpenGTS_2.4.5/build/lib
         [echo] OS = Linux
         [echo] JavaHome = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
         [exec] java version "1.6.0_24"
         [exec] OpenJDK Runtime Environment (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-x86_64)
         [exec] OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
         [copy] Copying 2 files to /usr/local/OpenGTS_2.4.5/build/lib
         [echo] (Ignore copy 'not found' warnings)
    gtsutils.compile:
         [echo] Compiling gtsutils.jar source ...
         [echo] Ignore any "sun.reflect.Reflection" warnings that may be displayed
        [javac] Compiling 58 source files to /usr/local/OpenGTS_2.4.5/build
        [javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/OSTools.java:666: warning: sun.reflect.Reflection is internal proprietary API and may be removed in a future release
        [javac]         return sun.reflect.Reflection.getCallerClass(frame + 1); // <== ignore any warnings
        [javac]                           ^
        [javac] 1 warning
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/util/package-info.class
         [echo] Compiling SendMailArgs.java (optional if 'mail.jar' not available) ...
        [javac] Compiling 1 source file to /usr/local/OpenGTS_2.4.5/build
         [echo] Compiling dbtools ...
        [javac] Compiling 24 source files to /usr/local/OpenGTS_2.4.5/build
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/dbtools/package-info.class
    gtsutils.exceltools:
    gtsutils.sigHandler:
    gtsutils.optional:
    gtsutils.jar:
         [echo] Creating gtsutils.jar ...
         [copy] Copying 14 files to /usr/local/OpenGTS_2.4.5/build
          [jar] Building jar: /usr/local/OpenGTS_2.4.5/build/lib/gtsutils.jar
    gtsutils:
    CompileTime.java:
         [echo] Creating CompileTime module ...
    gtsdb:
         [echo] Creating gtsdb.jar ...
        [javac] Compiling 110 source files to /usr/local/OpenGTS_2.4.5/build
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/tinygeocoder/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/db/tables/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/nominatim/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/dbtypes/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/google/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/geonames/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/db/dmtp/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/gisgraphy/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/package-info.class
        [javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/db/package-info.class
         [copy] Copying 42 files to /usr/local/OpenGTS_2.4.5/build
          [jar] Building jar: /usr/local/OpenGTS_2.4.5/build/lib/gtsdb.jar
         [copy] Copying 1 file to /usr/local/OpenGTS_2.4.5/build/lib
    optjars:
    tomcat.home:
         [echo] 'CATALINA_HOME' is defined - /root/tools/eXoPlatform/tomcat-bundle
    tomcat.env:
    tools:
         [echo] Tools ...
        [javac] Compiling 4 source files to /usr/local/OpenGTS_2.4.5/build
        [javac] error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.chromattic.apt.ChromatticProcessor could not be instantiated: java.lang.NoClassDefFoundError: org/reflext/apt/JavaxLangReflectionModel
    BUILD FAILED
    /usr/local/OpenGTS_2.4.5/build.xml:1987: Compile failed; see the compiler error output for details.
    Total time: 24 seconds
    
     
  • slander

    slander - 2012-10-16

    I have reworked my install (pushing through it on a new Debian VM, rather than re-using my current CentOS Dev box) and things are going better for me. So - thanks again but please disregard my plea for help.

     

Log in to post a comment.