Geronimo
  1. Geronimo
  2. GERONIMO-4089

Investigate building and running Geronimo on JSE 6

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.2
    • Fix Version/s: 2.2
    • Component/s: None
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      We had a user request on IRC for building Geronimo on 1.6. I think it's time to start investigating this.

      1. axis2-jaxws-api-1.3.jar
        29 kB
        Donald Woods
      2. jse6.21.patch
        4 kB
        Jarek Gawor

        Activity

        Hide
        Jarek Gawor added a comment -

        I ran into another problem with installing client-deployer plugin on Java 6 but after fixing it (revision 720546) I was able to build trunk with Java 6.

        Show
        Jarek Gawor added a comment - I ran into another problem with installing client-deployer plugin on Java 6 but after fixing it (revision 720546) I was able to build trunk with Java 6.
        Hide
        Jarek Gawor added a comment -

        Committed changes to trunk to allow the concurrency module to build on Java 5 and 6 (revision 720519). Initially, I wanted to use maven-patch-plugin to patch the code at build time but it requires an external "patch" executable to run so instead I used Ant replace task to do simple string substitution on the source code.

        Show
        Jarek Gawor added a comment - Committed changes to trunk to allow the concurrency module to build on Java 5 and 6 (revision 720519). Initially, I wanted to use maven-patch-plugin to patch the code at build time but it requires an external "patch" executable to run so instead I used Ant replace task to do simple string substitution on the source code.
        Hide
        Jarek Gawor added a comment -

        The JAX-WS API issues are no longer a problem on Java 6 in trunk since trunk was updated to JAX-WS 2.1. However, a new problem emerged with the concurrency module (some API were changed between Java 5 and Java 6 in java.util.concurrent.ExecutorService which causes compilation problems). See http://marc.info/?l=geronimo-dev&m=122715543122950&w=2 discussion for details.

        Show
        Jarek Gawor added a comment - The JAX-WS API issues are no longer a problem on Java 6 in trunk since trunk was updated to JAX-WS 2.1. However, a new problem emerged with the concurrency module (some API were changed between Java 5 and Java 6 in java.util.concurrent.ExecutorService which causes compilation problems). See http://marc.info/?l=geronimo-dev&m=122715543122950&w=2 discussion for details.
        Hide
        Forrest Xia added a comment -

        Tried using maven 2.0.9 to build a G sample with java 6, but failed, then searched web and found maven does not support java 6 so far. Only a requirement(http://jira.codehaus.org/browse/MPJAVA-46) posted in maven jira, no response.

        However, did some basic deploy/undeploy operations on LG runtime, and seems LG runtime could run on java 6.

        Show
        Forrest Xia added a comment - Tried using maven 2.0.9 to build a G sample with java 6, but failed, then searched web and found maven does not support java 6 so far. Only a requirement( http://jira.codehaus.org/browse/MPJAVA-46 ) posted in maven jira, no response. However, did some basic deploy/undeploy operations on LG runtime, and seems LG runtime could run on java 6.
        Hide
        Donald Woods added a comment -

        Yep, was just providing a patched jar so others could test/try it out until we have a real solution.....

        Show
        Donald Woods added a comment - Yep, was just providing a patched jar so others could test/try it out until we have a real solution.....
        Hide
        Jarek Gawor added a comment -

        I would rather avoid patching existing and published jar. I think it would be better to create a small project that only has that dummy class and add that the jar to the jee-spes/car module.

        Show
        Jarek Gawor added a comment - I would rather avoid patching existing and published jar. I think it would be better to create a small project that only has that dummy class and add that the jar to the jee-spes/car module.
        Hide
        Donald Woods added a comment -

        Patched axis2-jaxws-api-1.3.jar with a dummy javax/xml/ws/EndpointReference.java added.
        With the above file and the patch applied to my local 2.1.2-SNAPSHOT, I was able to build with Sun 1.6.0_05 on MacOSX, but did see 5 security-testsuite and 1 console-testuite failures.

        Show
        Donald Woods added a comment - Patched axis2-jaxws-api-1.3.jar with a dummy javax/xml/ws/EndpointReference.java added. With the above file and the patch applied to my local 2.1.2-SNAPSHOT, I was able to build with Sun 1.6.0_05 on MacOSX, but did see 5 security-testsuite and 1 console-testuite failures.
        Hide
        Jarek Gawor added a comment -

        The changes to plugins/pom.xml and framework/configs/pom.xml in the attached patch can be ignored as I committed related changes to trunk (revision 665741) and branches/2.1 (revision 665742) to allow plugins to be installed on server running on Java 6.

        Show
        Jarek Gawor added a comment - The changes to plugins/pom.xml and framework/configs/pom.xml in the attached patch can be ignored as I committed related changes to trunk (revision 665741) and branches/2.1 (revision 665742) to allow plugins to be installed on server running on Java 6.
        Hide
        Jarek Gawor added a comment -

        Here's a patch that successfully allowed me to build branches/2.1 with Java 6. Please do not commit the patch as is as the Java code changes will break Java 5 builds. To allow Java 5 and 6 builds at the same time we will need to update the jaxws api library (or provide a fake javax.xml.ws.EndpointReference class).

        Show
        Jarek Gawor added a comment - Here's a patch that successfully allowed me to build branches/2.1 with Java 6. Please do not commit the patch as is as the Java code changes will break Java 5 builds. To allow Java 5 and 6 builds at the same time we will need to update the jaxws api library (or provide a fake javax.xml.ws.EndpointReference class).

          People

          • Assignee:
            Jarek Gawor
            Reporter:
            Kevan Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development