grizzly
  1. grizzly
  2. GRIZZLY-1051

Grizzly 2 doesn't compile on Windows 7 with JDK 7

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.2
    • Component/s: framework
    • Labels:
      None
    • Environment:

      Windows 7 with JDK7 and maven 3

      Description

      [INFO] grizzly-project ................................... SUCCESS [0.336s]
      [INFO] grizzly-framework ................................. SUCCESS [2.753s]
      [INFO] grizzly-rcm ....................................... SUCCESS [0.660s]
      [INFO] grizzly-http ...................................... SUCCESS [0.608s]
      [INFO] grizzly-http-server ............................... SUCCESS [0.479s]
      [INFO] grizzly-http-servlet .............................. SUCCESS [4.731s]
      [INFO] grizzly-comet ..................................... SUCCESS [0.432s]
      [INFO] grizzly-websockets ................................ SUCCESS [1.151s]
      [INFO] grizzly-portunif .................................. SUCCESS [0.262s]
      [INFO] grizzly-http-ajp .................................. SUCCESS [0.289s]
      [INFO] grizzly-config .................................... FAILURE [0.188s]
      [INFO] grizzly-core ...................................... SKIPPED
      [INFO] grizzly-http-server-multipart ..................... SKIPPED
      [INFO] grizzly-http-server-core .......................... SKIPPED
      [INFO] grizzly-http-servlet-server ....................... SKIPPED
      [INFO] grizzly-comet-server .............................. SKIPPED
      [INFO] grizzly-websockets-server ......................... SKIPPED
      [INFO] grizzly-all ....................................... SKIPPED
      [INFO] grizzly-bundles ................................... SKIPPED
      [INFO] grizzly-modules ................................... SKIPPED
      [INFO] grizzly-framework-samples ......................... SKIPPED
      [INFO] grizzly-http-samples .............................. SKIPPED
      [INFO] grizzly-websockets-chat ........................... SKIPPED
      [INFO] grizzly-http-server-samples ....................... SKIPPED
      [INFO] grizzly-http-multipart-samples .................... SKIPPED
      [INFO] grizzly-portunif-samples .......................... SKIPPED
      [INFO] grizzly-comet-counter ............................. SKIPPED
      [INFO] grizzly-comet-jmaki ............................... SKIPPED
      [INFO] grizzly-comet-samples ............................. SKIPPED
      [INFO] grizzly-http-ajp-samples .......................... SKIPPED
      [INFO] grizzly-samples ................................... SKIPPED
      [INFO] Grizzly OSGi HttpService .......................... SKIPPED
      [INFO] Grizzly OSGi HttpService Bundle ................... SKIPPED
      [INFO] grizzly-extra-bundles ............................. SKIPPED
      [INFO] grizzly-extras .................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 13.991s
      [INFO] Finished at: Tue Aug 02 07:50:57 EDT 2011
      [INFO] Final Memory: 31M/355M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.glassfish.hk2:hk2-maven-plugin:1.6.11:hk2-compile (default-hk2-compile) on
      project grizzly-config: Execution default-hk2-compile of goal org.glassfish.hk2:hk2-maven-plugin:1.6.11:hk2-co
      mpile failed: Unable to load the mojo 'hk2-compile' in the plugin 'org.glassfish.hk2:hk2-maven-plugin:1.6.11'.
      A required class is missing: com/sun/mirror/apt/AnnotationProcessorFactory
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.glassfish.hk2:hk2-maven-plugin:1.6.11
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/hk2-maven-plugin/1.6.11/hk2-maven-plu
      gin-1.6.11.jar
      [ERROR] urls[1] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/hk2-maven/1.6.11/hk2-maven-1.6.11.jar

      [ERROR] urls[2] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/hk2-core/1.6.11/hk2-core-1.6.11.jar
      [ERROR] urls[3] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/class-model/1.6.11/class-model-1.6.11
      .jar
      [ERROR] urls[4] = file:/C:/Users/jerabi/.m2/repository/org/apache/maven/maven-archiver/2.0.4/maven-archiver-2.
      0.4.jar
      [ERROR] urls[5] = file:/C:/Users/jerabi/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-
      archiver-1.0-alpha-4.jar
      [ERROR] urls[6] = file:/C:/Users/jerabi/.m2/repository/org/osgi/osgi_R4_core/1.0/osgi_R4_core-1.0.jar
      [ERROR] urls[7] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/hk2-dependency-verifier/1.6.11/hk2-de
      pendency-verifier-1.6.11.jar
      [ERROR] urls[8] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/osgi-adapter/1.6.11/osgi-adapter-1.6.
      11.jar
      [ERROR] urls[9] = file:/C:/Users/jerabi/.m2/repository/org/apache/bcel/bcel/5.2/bcel-5.2.jar
      [ERROR] urls[10] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/test-harness/1.6.11/test-harness-1.6
      .11.jar
      [ERROR] urls[11] = file:/C:/Users/jerabi/.m2/repository/junit/junit/4.3.1/junit-4.3.1.jar
      [ERROR] urls[12] = file:/C:/Users/jerabi/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
      [ERROR] urls[13] = file:/C:/Users/jerabi/.m2/repository/com/sun/istack/istack-commons-test/1.0/istack-commons-
      test-1.0.jar
      [ERROR] urls[14] = file:/C:/Users/jerabi/.m2/repository/org/apache/ant/ant-junit/1.7.0/ant-junit-1.7.0.jar
      [ERROR] urls[15] = file:/C:/Users/jerabi/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      [ERROR] urls[16] = file:/C:/Users/jerabi/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
      [ERROR] urls[17] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/config-generator/1.6.11/config-gener
      ator-1.6.11.jar
      [ERROR] urls[18] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/config/1.6.11/config-1.6.11.jar
      [ERROR] urls[19] = file:/C:/Users/jerabi/.m2/repository/org/jvnet/tiger-types/1.4/tiger-types-1.4.jar
      [ERROR] urls[20] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/external/bean-validator/1.6.11/bean-
      validator-1.6.11.jar
      [ERROR] urls[21] = file:/C:/Users/jerabi/.m2/repository/com/googlecode/jtype/jtype/0.1.0/jtype-0.1.0.jar
      [ERROR] urls[22] = file:/C:/Users/jerabi/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.3/jaxb-xjc-2.1.3.jar
      [ERROR] urls[23] = file:/C:/Users/jerabi/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1.3.jar
      [ERROR] urls[24] = file:/C:/Users/jerabi/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
      [ERROR] urls[25] = file:/C:/Users/jerabi/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
      [ERROR] urls[26] = file:/C:/Users/jerabi/.m2/repository/com/sun/xml/stream/sjsxp/1.0/sjsxp-1.0.jar
      [ERROR] urls[27] = file:/C:/Users/jerabi/.m2/repository/javax/xml/stream/stax-api/1.0/stax-api-1.0.jar
      [ERROR] urls[28] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/auto-depends-plugin/1.6.11/auto-depe
      nds-plugin-1.6.11.jar
      [ERROR] urls[29] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/auto-depends/1.6.11/auto-depends-1.6
      .11.jar
      [ERROR] urls[30] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/external/javax.inject/1.6.11/javax.i
      nject-1.6.11.jar
      [ERROR] urls[31] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/external/asm-all-repackaged/1.6.11/a
      sm-all-repackaged-1.6.11.jar
      [ERROR] urls[32] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/hk2-api/1.6.11/hk2-api-1.6.11.jar
      [ERROR] urls[33] = file:/C:/Users/jerabi/.m2/repository/org/glassfish/hk2/osgi-resource-locator/1.0.1/osgi-res
      ource-locator-1.0.1.jar
      [ERROR] urls[34] = file:/C:/Users/jerabi/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/m
      aven-compiler-plugin-2.0.2.jar
      [ERROR] urls[35] = file:/C:/Users/jerabi/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-c
      ompiler-api-1.5.3.jar
      [ERROR] urls[36] = file:/C:/Users/jerabi/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plex
      us-compiler-manager-1.5.3.jar
      [ERROR] urls[37] = file:/C:/Users/jerabi/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus
      -compiler-javac-1.5.3.jar
      [ERROR] urls[38] = file:/C:/Users/jerabi/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.
      0.4.jar
      [ERROR] urls[39] = file:/C:/Users/jerabi/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
      [ERROR] urls[40] = file:/C:/Users/jerabi/.m2/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.j
      ar
      [ERROR] urls[41] = file:/C:/Users/jerabi/.m2/repository/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.
      2.0.jar
      [ERROR] urls[42] = file:/C:/Users/jerabi/.m2/repository/biz/aQute/bndlib/0.0.203/bndlib-0.0.203.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import from realm ClassRealm[project>org.glassfish.grizzly:grizzly-config:2.1.2-SNAPSHO
      T, parent: ClassRealm[maven.api, parent: null]]]
      [ERROR]
      [ERROR] -----------------------------------------------------: com.sun.mirror.apt.AnnotationProcessorFactory
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :grizzly-config

      jerabi@jerabi-THINK /cygdrive/d/workspaces/opensource/workspace_grizzly/grizzly2/2dot0
      $

        Activity

        Hide
        Ryan Lubke added a comment -

        I've added a workaround that appears to resolve the issue for me with JDK7 on Linux.

        Please pull from the master and verify in your environment.

        Thanks!

        Show
        Ryan Lubke added a comment - I've added a workaround that appears to resolve the issue for me with JDK7 on Linux. Please pull from the master and verify in your environment. Thanks!
        Hide
        Ryan Lubke added a comment -

        Revisions:
        ----------
        7e4d50bcd919bf99d35bd9cb55389c8e56215379
        6fec8fa494c3ce746c6f06bf1286ac987e3ac852

        Modified Paths:
        ---------------
        modules/config/pom.xml

        Show
        Ryan Lubke added a comment - Revisions: ---------- 7e4d50bcd919bf99d35bd9cb55389c8e56215379 6fec8fa494c3ce746c6f06bf1286ac987e3ac852 Modified Paths: --------------- modules/config/pom.xml

          People

          • Assignee:
            Ryan Lubke
            Reporter:
            survivant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: