ServiceMix
  1. ServiceMix
  2. SM-2240

Some endorsed libraries are duplicated

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0
    • Component/s: servicemix-assembly
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The current SNAPSHOT assembly produces duplicate endorsed libraries:

      [raul@~/Workbench/Source/servicemix5/assemblies/apache-servicemix/target/apache-servicemix-5.0.0-SNAPSHOT/lib/endorsed$] ls -lrt
      total 11808
      -rw-r--r--  1 raul  staff   278281 Oct 24  2011 serializer-2.7.1.jar
      -rw-r--r--  1 raul  staff  3176148 Oct 24  2011 xalan-2.7.1.jar
      -rw-r--r--  1 raul  staff  1367760 Sep 10  2012 xercesImpl-2.11.0.jar
      -rw-r--r--  1 raul  staff   261220 Mar 10  2013 org.apache.servicemix.specs.jaxp-api-1.4-2.2.0.jar
      -rw-r--r--  1 raul  staff   125263 Mar 10  2013 org.apache.servicemix.specs.jaxb-api-2.2-2.2.0.jar
      -rw-r--r--  1 raul  staff    73679 Mar 10  2013 org.apache.servicemix.specs.jaxws-api-2.2-2.2.0.jar
      -rw-r--r--  1 raul  staff    49404 Mar 10  2013 org.apache.servicemix.specs.saaj-api-1.3-2.2.0.jar
      -rw-r--r--  1 raul  staff    48823 Mar 10  2013 org.apache.servicemix.specs.stax-api-1.2-2.2.0.jar
      -rw-r--r--  1 raul  staff    53049 Mar 10  2013 org.apache.servicemix.specs.activation-api-1.1-2.2.0.jar
      -rw-r--r--  1 raul  staff     8741 Sep 17 14:56 org.apache.karaf.exception-2.3.3.jar
      -rw-r--r--  1 raul  staff     1205 Sep 17 15:03 README
      -rw-r--r--  1 raul  staff   121168 Feb 16 23:05 org.apache.servicemix.specs.jaxb-api-2.2-2.4.0.jar
      -rw-r--r--  1 raul  staff    65741 Feb 16 23:06 org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar
      -rw-r--r--  1 raul  staff    49497 Feb 16 23:06 org.apache.servicemix.specs.saaj-api-1.3-2.4.0.jar
      -rw-r--r--  1 raul  staff    73931 Feb 16 23:06 org.apache.servicemix.specs.jaxws-api-2.2-2.4.0.jar
      -rw-r--r--  1 raul  staff   261339 Feb 16 23:07 org.apache.servicemix.specs.jaxp-api-1.4-2.4.0.jar
      

      This is because Karaf 2.3.3 comes bundled with SMX specs 2.2.0, and we're adding in SMX specs 2.4.0 without removing the former.

        Activity

        Raúl Kripalani created issue -
        Hide
        ASF GitHub Bot added a comment -

        GitHub user raulk opened a pull request:

        https://github.com/apache/servicemix5/pull/9

        SM-2240 Fix duplication of some endorsed libraries.

        See ticket for more info.

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/apache/servicemix5 trunk

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/servicemix5/pull/9.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #9


        commit 9d9e6b4e6aceb1e4f322babc481b04b42a4aa3be
        Author: Raul Kripalani <raulk@apache.org>
        Date: 2014-02-17T00:14:12Z

        SM-2240 Fix duplication of some endorsed libraries.


        Show
        ASF GitHub Bot added a comment - GitHub user raulk opened a pull request: https://github.com/apache/servicemix5/pull/9 SM-2240 Fix duplication of some endorsed libraries. See ticket for more info. You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/servicemix5 trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/servicemix5/pull/9.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #9 commit 9d9e6b4e6aceb1e4f322babc481b04b42a4aa3be Author: Raul Kripalani <raulk@apache.org> Date: 2014-02-17T00:14:12Z SM-2240 Fix duplication of some endorsed libraries.
        Hide
        Raúl Kripalani added a comment - - edited

        Pull request: https://github.com/apache/servicemix5/pull/9. Please review and apply if good!

        Show
        Raúl Kripalani added a comment - - edited Pull request: https://github.com/apache/servicemix5/pull/9 . Please review and apply if good!
        Raúl Kripalani made changes -
        Field Original Value New Value
        Assignee Raul Kripalani [ raulvk ] Gert Vanthienen [ gertvanthienen ]
        Raúl Kripalani made changes -
        Patch Info Patch Available [ 10042 ]
        Freeman Fang made changes -
        Assignee Gert Vanthienen [ gertvanthienen ] Freeman Fang [ ffang ]
        Hide
        Krzysztof Sobkowiak added a comment -

        Upgrading to Karaf 2.3.4 (SM-2241) will solve this problem.

        kso@Inspiron-7720:~/work/projects/asf/servicemix5/assemblies/apache-servicemix/target/apache-servicemix-5.0.0-SNAPSHOT/lib/endorsed$ ls -lrt
        total 5348
        -rw-r--r-- 1 kso kso 1367760 lut 14 19:09 xercesImpl-2.11.0.jar
        -rw-r--r-- 1 kso kso   48922 lut 14 19:09 org.apache.servicemix.specs.stax-api-1.2-2.4.0.jar
        -rw-r--r-- 1 kso kso   49497 lut 14 19:09 org.apache.servicemix.specs.saaj-api-1.3-2.4.0.jar
        -rw-r--r-- 1 kso kso   73931 lut 14 19:09 org.apache.servicemix.specs.jaxws-api-2.2-2.4.0.jar
        -rw-r--r-- 1 kso kso  261339 lut 14 19:09 org.apache.servicemix.specs.jaxp-api-1.4-2.4.0.jar
        -rw-r--r-- 1 kso kso  121168 lut 14 19:09 org.apache.servicemix.specs.jaxb-api-2.2-2.4.0.jar
        -rw-r--r-- 1 kso kso   65741 lut 14 19:09 org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar
        -rw-r--r-- 1 kso kso    8741 lut 15 02:20 org.apache.karaf.exception-2.3.4.jar
        -rw-r--r-- 1 kso kso    1204 lut 15 02:27 README
        -rw-r--r-- 1 kso kso  278281 lut 16 20:39 serializer-2.7.1.jar
        -rw-r--r-- 1 kso kso 3176148 lut 16 20:39 xalan-2.7.1.jar
        

        But it's good to have a method to overwrite the endorsed libraries.

        Show
        Krzysztof Sobkowiak added a comment - Upgrading to Karaf 2.3.4 ( SM-2241 ) will solve this problem. kso@Inspiron-7720:~/work/projects/asf/servicemix5/assemblies/apache-servicemix/target/apache-servicemix-5.0.0-SNAPSHOT/lib/endorsed$ ls -lrt total 5348 -rw-r--r-- 1 kso kso 1367760 lut 14 19:09 xercesImpl-2.11.0.jar -rw-r--r-- 1 kso kso 48922 lut 14 19:09 org.apache.servicemix.specs.stax-api-1.2-2.4.0.jar -rw-r--r-- 1 kso kso 49497 lut 14 19:09 org.apache.servicemix.specs.saaj-api-1.3-2.4.0.jar -rw-r--r-- 1 kso kso 73931 lut 14 19:09 org.apache.servicemix.specs.jaxws-api-2.2-2.4.0.jar -rw-r--r-- 1 kso kso 261339 lut 14 19:09 org.apache.servicemix.specs.jaxp-api-1.4-2.4.0.jar -rw-r--r-- 1 kso kso 121168 lut 14 19:09 org.apache.servicemix.specs.jaxb-api-2.2-2.4.0.jar -rw-r--r-- 1 kso kso 65741 lut 14 19:09 org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar -rw-r--r-- 1 kso kso 8741 lut 15 02:20 org.apache.karaf.exception-2.3.4.jar -rw-r--r-- 1 kso kso 1204 lut 15 02:27 README -rw-r--r-- 1 kso kso 278281 lut 16 20:39 serializer-2.7.1.jar -rw-r--r-- 1 kso kso 3176148 lut 16 20:39 xalan-2.7.1.jar But it's good to have a method to overwrite the endorsed libraries.
        Hide
        Freeman Fang added a comment -

        Thanks Raul and Krzysztof.

        I think we need align the smx spec version in Karaf and SMX, and upgrade to Karaf 2.3.4(SM-2241) also fixed this issue

        Show
        Freeman Fang added a comment - Thanks Raul and Krzysztof. I think we need align the smx spec version in Karaf and SMX, and upgrade to Karaf 2.3.4( SM-2241 ) also fixed this issue
        Freeman Fang made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0.0 [ 12324078 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Freeman Fang
            Reporter:
            Raúl Kripalani
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development