Bug 1093401 - Mulitple jar versions in modeshape-cmis WAR
Summary: Mulitple jar versions in modeshape-cmis WAR
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Productization
Version: 6.0.0,6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jan
QA Contact: Jan Stastny
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-01 15:42 UTC by Julian Coleman
Modified: 2017-05-15 14:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-15 14:40:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-2325 0 Blocker Resolved CMIS webapplication contains duplicate jars 2017-05-16 11:43:28 UTC

Description Julian Coleman 2014-05-01 15:42:12 UTC
The war:

  jboss-eap-6.1/modules/system/layers/dv/org/modeshape/main/deployments/modeshape-cmis.war

contains multiple versions of some jars:

  WEB-INF/lib/antlr-runtime-3.2.jar
  WEB-INF/lib/antlr-runtime-3.5.jar

  WEB-INF/lib/stax2-api-3.1.1-redhat-3.jar
  WEB-INF/lib/stax2-api-3.1.1.jar

  WEB-INF/lib/woodstox-core-asl-4.2.0-redhat-2.jar
  WEB-INF/lib/woodstox-core-asl-4.2.0.jar

Comment 1 Van Halbert 2014-09-26 16:19:37 UTC
In DV 6.1 ER2, this is still an issue with the following jar's:

activation-1.1.1-redhat-2.jar  and activation-1.1.jar
jaxb -impl-2.1.11.jar   and jaxb-impl-2.2.5.redhat-8.jar
saaj-imple-1.3.3.jar  and  saaj-impl-1.3.16.redhat-3.jar
stax2-api-3.1.1.jar  and  stax2-api-3.1.3.redhat-1.jar
woodstox-core-asl-4.2.0.jar  and woodstox-core-asl-4.2.0.redhat-4.jar

Comment 2 Horia Chiorean 2014-10-02 12:32:13 UTC
@julian: some of these jars (if not all) are coming from the local ModeShape build and it's something I hope to fix for ER3.

Comment 3 Horia Chiorean 2014-10-03 07:30:31 UTC
The duplicate JARs that are coming from the local build which I will fix for ER3 are: activation-*, jaxb-api-*, jaxb-impl-*. 
The rest are most likely coming during the productization process and will have to be fixed accordingly.

Comment 4 Van Halbert 2014-10-28 18:17:36 UTC
ER3 still has duplicates for  stax-api, stax2-api and woodstox-core-asl jar's.

Comment 5 Horia Chiorean 2014-10-28 18:44:09 UTC
Building locally the 3.8.x-prod-ip6.1-ER3-2 tag (which is what should've been used for ER3) produces a WAR with the following JARs in the lib:

activation-1.1.1.jar
antlr-2.7.7.jar
antlr-runtime-3.5.jar
chemistry-opencmis-commons-api-0.11.0.jar
chemistry-opencmis-commons-impl-0.11.0.jar
chemistry-opencmis-server-bindings-0.11.0.jar
chemistry-opencmis-server-bindings-war-0.11.0.jar
chemistry-opencmis-server-jcr-0.11.0-classes.jar
chemistry-opencmis-server-support-0.11.0.jar
commons-collections-3.2.1.jar
commons-lang-2.6.jar
jaxb-api-2.2.5.jar
jaxb-impl-2.2.5.jar
jaxws-api-2.1.jar
jaxws-rt-2.1.7.jar
mimepull-1.9.4.jar
modeshape-web-cmis-3.8.1.GA.jar
modeshape-web-jcr-3.8.1.GA.jar
resolver-20050927.jar
slf4j-api-1.7.5.jar
stax-api-1.0-2.jar
stax-ex-1.2.jar
stax2-api-3.1.1.jar
streambuffer-0.9.jar
stringtemplate-3.2.1.jar
woodstox-core-asl-4.2.0.jar

So either this tag wasn't used or something got messed up during the productization build.

Comment 6 Horia Chiorean 2014-10-29 14:59:55 UTC
Had a look at the Maven repo for ER3 and the tag used to build ModeShape is correct (id: 6f363abe2e3fd69bfc606da116908db936de4b55).
So something must've gotten messed up when building the WAR files that are packaged inside the ModeShape EAP kit, namely: modeshape-jbossas-cmis-war

Comment 7 Julian Coleman 2015-01-12 11:42:11 UTC
Fixed with commit 9cfc2d3c5b3a0c0bc9cd11b989b4e9e63b94a816 to rpms/modeshape.git:

    BZ-1093401
    Add patch to exclude community jars from the CMIS war where we have multiple
    versions present.

Comment 9 Jan Stastny 2015-02-03 09:12:10 UTC
ER6 has duplicates for stax-api:
stax-api-1.0-2.jar
stax-api-1.0.jar

Comment 11 Horia Chiorean 2015-02-03 18:13:18 UTC
The list of transitive dependencies of this module looks like this:

INFO] +- javax.jcr:jcr:jar:2.0:provided
INFO] +- org.modeshape:modeshape-common:jar:3.8.2.GA:provided
INFO] +- org.modeshape:modeshape-jcr-api:jar:3.8.2.GA:provided
INFO] +- org.modeshape:modeshape-web-cmis:jar:3.8.2.GA:compile
INFO] |  +- org.modeshape:modeshape-web-jcr:jar:3.8.2.GA:compile
INFO] |  +- org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:jar:0.11.0:compile
INFO] |  |  \- org.slf4j:slf4j-api:jar:1.7.2:test
INFO] |  +- org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl:jar:0.11.0:compile
INFO] |  |  +- org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
INFO] |  |  |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
INFO] |  |  |  \- org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
INFO] |  |  +- org.jvnet.mimepull:mimepull:jar:1.9.4:compile
INFO] |  |  \- com.sun.xml.ws:jaxws-rt:jar:2.1.7:compile
INFO] |  |     +- javax.xml.ws:jaxws-api:jar:2.1:compile
INFO] |  |     |  \- javax.xml.bind:jaxb-api:jar:2.2.5:compile
INFO] |  |     +- com.sun.xml.bind:jaxb-impl:jar:2.2.5:compile
INFO] |  |     +- com.sun.xml.stream.buffer:streambuffer:jar:0.9:compile
INFO] |  |     |  \- javax.activation:activation:jar:1.1.1:compile
INFO] |  |     +- org.jvnet.staxex:stax-ex:jar:1.2:compile
INFO] |  |     \- com.sun.org.apache.xml.internal:resolver:jar:20050927:compile
INFO] |  +- org.apache.chemistry.opencmis:chemistry-opencmis-server-support:jar:0.11.0:compile
INFO] |  |  \- org.antlr:antlr-runtime:jar:3.2:test
INFO] |  |     \- org.antlr:stringtemplate:jar:3.2:test
INFO] |  |        \- antlr:antlr:jar:2.7.7:test
INFO] |  \- org.apache.chemistry.opencmis:chemistry-opencmis-server-jcr:jar:classes:0.11.0:compile
INFO] |     +- org.apache.chemistry.opencmis:chemistry-opencmis-server-bindings-war:war:0.11.0:compile
INFO] |     \- commons-collections:commons-collections:jar:3.2.1:compile
INFO] \- com.h2database:h2:jar:1.3.168:test

The other JARs come from overlaying 
org.apache.chemistry.opencmis:chemistry-opencmis-server-bindings-war:0.11.0:war (which is the version coming from the BOM)and these only include
stax-api-1.0-2.jar

This is consistent with what I'm seeing when building 
modeshape-jbossas-cmis-war-3.8.2.GA.war locally - i.e. I don't see the duplicate JARs in the WAR that's being built locally.

So atm. I have absolutely no idea where stax-api-1.0.jar could be coming from.


Note You need to log in before you can comment on or make changes to this bug.