Bug 1386170

Summary: Overriden EAP jars in DV patch 6.2.9 cause failed deployment of some WARs
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: ProductizationAssignee: Alex Szczuczko <aszczucz>
Status: CLOSED CURRENTRELEASE QA Contact: Andrej Smigala <asmigala>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jdurani, jolee, jstastny, mbaluch, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-20 19:35:15 UTC Type: Support Patch
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1373943    

Description Andrej Smigala 2016-10-18 10:40:05 UTC
Description of problem:

When deploying a WAR with a bean annotated with @Startup and a @PostConstruct method, the deployment fails with the following error:

"failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"teiid3889-1.0.war\".component.Teiid3889Rollback.START" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"teiid3889-1.0.war\".component.Teiid3889Rollback.START: java.lang.NoSuchMethodError: org.jboss.as.ee.component.deployers.StartupCountdown.enter()Lorg/jboss/as/ee/component/deployers/StartupCountdown$Frame;
Caused by: java.lang.NoSuchMethodError: org.jboss.as.ee.component.deployers.StartupCountdown.enter()Lorg/jboss/as/ee/component/deployers/StartupCountdown$Frame;"}}


This appears to be due to the jboss-as-ee-7.5.9.Final-redhat-2-bz-1358913.jar being included in the patch under modules/system/layers/dv/.overlays/BZ-1373943_dv, which apparently overrides the file modules/system/layers/base/.overlays/BZ-1373943_base/org/jboss/as/ee/main/jboss-as-ee-7.5.10.Final-redhat-2.jar

Removing the module under BZ-1373943_dv resolves the issue.

Comment 2 Alex Szczuczko 2016-10-18 14:03:09 UTC
I made a couple mistakes in the assembly. There's some extra stuff required for removing the one-off that was needed in DV 6.2.7.

Comment 3 Alex Szczuczko 2016-10-18 15:39:26 UTC
Fixed by copying the following modules from EAP 6.4.10 into the DV layer (the patch system and JBoss Modules don't let me remove them from just the DV layer). This is a similar fix to what was used to "remove" the JGroups one-off (bug 1344753).

org/jboss/as/ee/main/
org/jboss/as/jpa/main/
org/jboss/as/weld/main/

The above modules were the ones changed by the bug 1358913 one-off.

Comment 4 Alex Szczuczko 2016-10-18 18:01:28 UTC
Fixed in CR3