Bug 778755 (SOA-1210)

Summary: Duplicated classes inside jars.
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Pavel Macik <pmacik>
Component: EAPAssignee: nwallace <nwallace>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 CP01   
Target Milestone: ---   
Target Release: 4.3 CP02   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1210
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
SOA platform 4.3.0 CP01 CR3
Last Closed: 2009-08-28 07:22:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pavel Macik 2009-03-06 08:19:14 UTC
Date of First Response: 2009-03-06 10:30:58
project_key: SOA

There are following classes present in jars twice:

jbossorg-eula.txt
jbossorg-eula.txt
org/jboss/tm/JBossXATerminator.class
org/jboss/tm/LastResource.class
org/jboss/tm/TransactionDemarcationSupport.class
org/jboss/tm/TransactionLocal.class
org/jboss/tm/TransactionLocalDelegate.class
org/jboss/tm/TransactionLocalDelegateImpl$TransactionLocalSynchronization.class
org/jboss/tm/TransactionLocalDelegateImpl.class
org/jboss/tm/TransactionManagerFactory.class
org/jboss/tm/TransactionManagerLocator.class
org/jboss/tm/TransactionPropagationContextFactory.class
org/jboss/tm/TransactionPropagationContextImporter.class
org/jboss/tm/TransactionPropagationContextUtil.class
org/jboss/tm/TransactionTimeoutConfiguration.class
org/jboss/tm/TxUtils.class
org/jboss/tm/XAExceptionFormatter.class
org/jboss/tm/usertx/client/ServerVMClientUserTransaction$UserTransactionStartedListener.class
org/jboss/tm/usertx/client/ServerVMClientUserTransaction.class
org/jboss/classloading/spi/DelegatingClassLoader.class
org/jboss/classloading/spi/RealClassLoader.class
org/jboss/crypto/digest/DigestCallback.class
org/jboss/crypto/digest/SHAInterleave.class
org/jboss/crypto/digest/SHAReverseInterleave.class
org/jboss/security/SecurityActions$SystemPropertyAction$1$1.class
org/jboss/security/SecurityActions$SystemPropertyAction$1.class
org/jboss/security/SecurityActions$SystemPropertyAction$2.class
org/jboss/security/SecurityActions$SystemPropertyAction.class
org/jboss/security/SecurityActions.class
org/jboss/security/plugins/DefaultLoginConfig.class
org/jboss/ejb/plugins/cmp/jdbc/WrappedStatement.class
built_using_java_1.5
built_using_java_1.5
dtd/XMLSchema.dtd
dtd/datatypes.dtd
org/jboss/invocation/InvocationType.class
org/jboss/metadata/XmlLoadable.class
schema/j2ee_1_4.xsd
schema/j2ee_jaxrpc_mapping_1_1.xsd
schema/j2ee_web_services_1_1.xsd
schema/j2ee_web_services_client_1_1.xsd
schema/javaee_5.xsd
schema/javaee_web_services_1_2.xsd
schema/javaee_web_services_client_1_2.xsd
schema/xml.xsd
org/jboss/ejb3/util/Debugger.class
org/jboss/mq/server/jmx/Queue.class
org/jboss/mq/server/jmx/QueueMBean.class
org/jboss/mq/server/jmx/Topic.class
org/jboss/mq/server/jmx/TopicMBean.class

Comment 1 Pavel Macik 2009-03-06 08:37:47 UTC
The jar is seamfp/lib/test/jboss-embeded-all.jar

Files jbossorg-eula.txt  and built_using_java_1.5 are present in the jar even 3 times (that is why they are listed twice).

Comment 2 Pavel Macik 2009-03-06 10:16:49 UTC
I found another duplicate files..
In the seamfp/lib/test/thirdparty-all.jar:

META-INF/LICENSE.txt
META-INF/NOTICE.txt


Comment 3 Pavel Macik 2009-03-06 14:36:25 UTC
Link: Added: This issue related JBPAPP-1751


Comment 4 trev 2009-03-06 15:30:58 UTC
This will have to be fixed in the next SEAM FP. Neil when we get the FP for the next release can you check it for duplicates please. dist-diff will help identify jars with potential problems. 

Comment 5 nwallace 2009-03-09 09:35:57 UTC
Ok, so this'll be a good test for the work from https://jira.jboss.org/jira/browse/SOA-836

Comment 6 Pavel Macik 2009-03-09 10:02:44 UTC
I written a groovy script that searches given dir (command line parameter) recursively for all jars and searches for duplicate files in each jar (on the same position). If the dir is not provided, the dir where the sctipt is executed is used instead.

The script can be found at 

https://svn.devel.redhat.com/repos/jboss-soa/trunk/qa/classchecker/src/org/jboss/soa/classchecker/find_duplicates.groovy

I used the script to gain the reported results.



Comment 7 nwallace 2009-06-08 11:16:41 UTC
This should be fixed in EAP 4.3 CP05FP01

Comment 8 nwallace 2009-06-25 11:09:25 UTC
Should've resolved this with my last comment as we'll not fix this ourselves as it's in hand within the expected eap fp.

Comment 9 Jiri Pechanec 2009-08-28 07:22:49 UTC
Verified in CR3