Bug 871413 - Arquillian AS7 7.1.1.Final adaptor is not compatible with EAP 6.0.1
Summary: Arquillian AS7 7.1.1.Final adaptor is not compatible with EAP 6.0.1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise WFK Platform 2
Classification: Retired
Component: Arquillian
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER1
: 2.2.0
Assignee: Marek Novotny
QA Contact: Karel Piwko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 12:07 UTC by Karel Piwko
Modified: 2013-05-14 14:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-14 14:51:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
-with-tools BOM file which contains the fix until 6.0.1.ER5 is out (6.92 KB, text/xml)
2012-11-27 08:54 UTC, Karel Piwko
no flags Details
JBoss BOMs from WFK 2.2.0.ER1 (86.12 KB, application/zip)
2013-03-04 09:10 UTC, Karel Piwko
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 877063 0 unspecified CLOSED Seam 2.3 seam-gen generated project is not testable 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBPAPP-10272 0 Major Closed It's impossible to execute goals mvn clean test -Parq-jbossas-remote(and mvn clean test -Parq-jbossas-managed) on all E... 2016-10-04 13:45:42 UTC
Red Hat Issue Tracker JBPAPP-10282 0 Major Closed JBossTS - EAP6.0.1.ER3 - XTS demo tests do not work 2016-10-04 13:45:42 UTC

Internal Links: 877063

Description Karel Piwko 2012-10-30 12:07:17 UTC
Description of problem:

We need a new Arquillian AS7 Adaptor for forward compatibility with EAP 6.0.1.
Currently, there is a remote-jmx protocol incompatibilities, which are not fixed yet.

Version-Release number of selected component (if applicable):

Arquillian AS7 adaptor 7.1.1.Final, certified to be compatible with EAP 6.0.0


How reproducible:

Always.

Steps to Reproduce:
1. Use Arquillian AS7 adaptor 7.1.1 with EAP 6.0.1 to run your tests.
  
Actual results:

Arquillian hangs.

Expected results:

Arquillian deploys the application

Additional info:

Workaround is to manually update the dependencies in your project.

Comment 1 JBoss JIRA Server 2012-10-30 13:35:21 UTC
Sande Gilda <sgilda> made a comment on jira JBPAPP-10272

Paul, Vladimir, or Shelly: Do we need a new build of the jboss-eap-6.0.1.ER3-maven-repository to test this fix?

Comment 2 Karel Piwko 2012-10-31 07:30:25 UTC
It seems that the main problem is incompatibility of org.jboss.remoting3:jboss-remoting.

Arquillian AS 7.1.1 uses 3.2.3.GA.
EAP6 6.0.1.ER2 uses 3.2.8.SP1
EAP6 6.0.1.ER3 uses 3.2.13.GA, which is incompatible with 3.2.3.GA

Therefore, we need to update the jboss-remoting.

Note, org.jboss.remoting3:remoting-jmx is not the faulty artifact, therefore both jmx and servlet 3.0 protocols are affected.

Comment 3 JBoss JIRA Server 2012-10-31 14:59:16 UTC
Paul Gier <pgier> made a comment on jira JBPAPP-10272

The bom update has been merged and rebuilt for EAP (JBPAPP-10284).  And the quickstarts have been updated to use this new bom.  Is there anything else that needs to be done for this?

Comment 4 JBoss JIRA Server 2012-10-31 15:27:11 UTC
Sande Gilda <sgilda> made a comment on jira JBPAPP-10272

I need to grab the latest Maven repo zip and test. I will comment here with the results.

Comment 8 JBoss JIRA Server 2012-10-31 19:05:05 UTC
Sande Gilda <sgilda> made a comment on jira JBPAPP-10272

I downloaded the latest ER3 Quickstarts and Maven repository and successfully ran the Arquillian tests for the following quickstarts.

bean-validation
ejb-in-war
hibernate4
kitchensink
kitchensink-ear
kitchensink-html5-mobile
kitchensink-jsp
tasks
tasks-jsf
tasks-rs
wsat-simple
wsba-coordinator-completion-simple
wsba-participant-completion-simple

I would say this issue is resolved.

Comment 9 JBoss JIRA Server 2012-10-31 20:05:34 UTC
Paul Gier <pgier> updated the status of jira JBPAPP-10272 to Resolved

Comment 10 JBoss JIRA Server 2012-11-02 08:39:33 UTC
Ondřej Chaloupka <ochaloup> updated the status of jira JBPAPP-10282 to Closed

Comment 11 JBoss JIRA Server 2012-11-02 08:39:33 UTC
Ondřej Chaloupka <ochaloup> made a comment on jira JBPAPP-10282

Tests are working after the change of the remoting version. Closing this issue.

Comment 12 JBoss JIRA Server 2012-11-05 04:55:45 UTC
Misty Stanley-Jones <misty> updated the status of jira JBPAPP-10282 to Reopened

Comment 13 JBoss JIRA Server 2012-11-05 04:56:01 UTC
Misty Stanley-Jones <misty> updated the status of jira JBPAPP-10282 to Resolved

Comment 14 JBoss JIRA Server 2012-11-05 13:26:42 UTC
Vladimir Rastseluev <vrastsel> updated the status of jira JBPAPP-10272 to Reopened

Comment 15 JBoss JIRA Server 2012-11-05 13:26:42 UTC
Vladimir Rastseluev <vrastsel> made a comment on jira JBPAPP-10272

After discussing with Sande, I decided to reopen issue, because tests in managed container failed too. So, please do investigate both cases.
To reproduce:
export JBOSS_HOME=/path-to-EAP6.0.1ER3-server-installation
run tests in managed container:
mvn clean test  -Parq-jbossas-managed

Comment 17 JBoss JIRA Server 2012-11-05 16:56:27 UTC
Rafael Benevides <benevides> made a comment on jira JBPAPP-10272

I added 
{code}
         <dependency>
         	<groupId>org.jboss.remoting3</groupId>
         	<artifactId>jboss-remoting</artifactId>
         	<version>3.2.12.GA</version>
         </dependency>
{code}
in *dependencyManagement* section on ejb-in-war/pom.xml and it worked.

It seems that something from *3.2.12.GA* to *3.2.12.GA-redhat-1* broke the tests.

Comment 18 JBoss JIRA Server 2012-11-05 17:07:44 UTC
Ondřej Chaloupka <ochaloup> updated the status of jira JBPAPP-10282 to Closed

Comment 23 JBoss JIRA Server 2012-11-06 15:47:02 UTC
Sande Gilda <sgilda> made a comment on jira JBPAPP-10272

Thanks for the clarification James. Let me know what you find out.

Comment 24 JBoss JIRA Server 2012-11-06 16:02:04 UTC
Karel Piwko <kpiwko> made a comment on jira JBPAPP-10272

It might not only be source changes, which are really limitied according to diff decompiled jars. It rather seems that transitive dependencies of jboss-remoting might play significant role:

Community:

    <xnio.version>3.0.7.GA</xnio.version>
    <logging.version>3.1.0.GA</logging.version>
    <logging-tools.version>1.0.3.Final</logging-tools.version>
    <logmanager.version>1.2.0.GA</logmanager.version>
    <junit.version>4.8.2</junit.version>
    <byteman-version>2.0.0</byteman-version>

Enterprise:

xnio 3.0.7.GA-redhat1
logging 3.1.2.GA-redhat-1
logging-tools-1.0.3.Final-redhat-2
logmanager 1.3.2.Final-redhat-1
junit 4.10-redhat-1
byteman 2.0.1-redhat-1


My tip: logmanager

Comment 25 JBoss JIRA Server 2012-11-06 17:07:34 UTC
James Perkins <jperkins> made a comment on jira JBPAPP-10272

Definitely shouldn't have anything to do with the logmanager and really remoting shouldn't be bringing in any of those dependencies. 

I have confirmed something is bringing in an older version of remoting (org.jboss.remoting3:jboss-remoting=org.jboss.remoting3:jboss-remoting:jar:3.2.3.GA:test). I'm working on figuring out what's bringing it in now.

Comment 26 JBoss JIRA Server 2012-11-06 17:25:50 UTC
Sande Gilda <sgilda> made a comment on jira JBPAPP-10272

Thanks James. It looks like you're getting close. :-)

Comment 29 JBoss JIRA Server 2012-11-07 08:53:21 UTC
Pete Muir <pmuir.uk> made a comment on jira JBPAPP-10272

Thanks for investigating James and Cheng. There is no productized version of arquillian, we instead certify the community bits, and manage versions via the BOMs.

Looking at Rafael's orginal workaround, you'll see that using 3.2.12.GA does work, but using 3.2.12.GA-redhat-1 does *not* work, which is very odd. Have either of you been able to verify this?

Comment 30 JBoss JIRA Server 2012-11-07 09:40:09 UTC
Paul Gier <pgier> made a comment on jira JBPAPP-10272

Using dependency management to force either 3.2.12.GA or 3.2.12.GA-redhat-1 works for me.  The problem seems to be that several transitive deps bring in version 3.2.3.GA.  The 3.2.3.GA version is closer (less transitive steps) to the current build in the dependency tree so it takes priority.  
{noformat}
[INFO] \- org.jboss.as:jboss-as-arquillian-container-managed:jar:7.1.1.Final:test
[INFO]    +- org.jboss.remoting3:jboss-remoting:jar:3.2.3.GA:test
[INFO]    +- org.jboss.remotingjmx:remoting-jmx:jar:1.0.4.Final-redhat-1:test
[INFO]    |  +- (org.jboss.remoting3:jboss-remoting:jar:3.2.12.GA-redhat-1:test - omitted for conflict with 3.2.3.GA)

{noformat}

I guess the right fix is to add the 3.2.12 version to dependencyManagement as rafabene did, or add it to the dependencyManagement in the jdf boms.

Comment 31 JBoss JIRA Server 2012-11-07 09:47:12 UTC
Paul Gier <pgier> made a comment on jira JBPAPP-10272

The reason this doesn't happen using arquillian-container-remote is because a-c-r does not have a direct dependency on jboss-remoting, so the 3.2.12.GA version ends up higher priority than the 3.2.3.GA version in the dep tree.  Since relying on the transitive dependency version is unreliable in both cases, it is probably best to add depMgmt to the boms, just to make sure the correct version is always used.

Comment 34 Karel Piwko 2012-11-27 08:54:53 UTC
Created attachment 652541 [details]
-with-tools BOM file which contains the fix until 6.0.1.ER5 is out

Attaching a <dependencyManagement> BOM which fixes the issue.

Comment 35 Emil Cervenan 2012-12-05 13:22:40 UTC
<!-- Specific version to make remoting compatible with EAP 6.0.1 -->	<dependency>
	<groupId>org.jboss.remotingjmx</groupId>
	<artifactId>remoting-jmx</artifactId>
	<version>1.0.4.Final-redhat-1</version>
</dependency>
<dependency>
	<groupId>org.jboss.remoting3</groupId>
	<artifactId>jboss-remoting</artifactId>
	<version>3.2.13.GA-redhat-1</version>
</dependency>

Comment 37 Karel Piwko 2013-02-20 13:35:23 UTC
Marek, we need to update the -with-tools BOM file to handle that the very same way as we did for EAP 6.0.1.

Comment 38 Marek Novotny 2013-02-20 14:37:09 UTC
OK, I looked at our 1.0.4.Final-redhat-1 and it is already there, so from BOM point of view we are done.

Comment 41 Karel Piwko 2013-03-04 09:09:17 UTC
James, can you please try using 1.0.4-redhat-1 with-tools BOM from the attached zip and let us know whether it helps?

Comment 42 Karel Piwko 2013-03-04 09:10:52 UTC
Created attachment 704810 [details]
JBoss BOMs from WFK 2.2.0.ER1

Attaching a zip file with BOMs. Note, we changed groupId from org.jboss.boms to com.redhat.jboss.wfk.boms there. Version is 1.0.4-redhat-1.

Comment 43 Karel Piwko 2013-03-08 15:11:04 UTC
Marking as verified in ER2. All test case QE has are able to run with the BOM file without any workaround being applied.

Comment 44 Marek Novotny 2013-03-11 08:07:35 UTC
just for later reference WFK 2.2.0.ER2 changed the groupId back to org.jboss.bom and version for that change is 1.0.4.Final-redhat-wfk-1

Comment 45 Karel Piwko 2013-05-14 14:51:18 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.


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