Bug 796313
Summary: | Spring ResourceAdapters are not JCA 1.5 and JCA 1.6 compliant | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Tomas Repel <trepel> | ||||
Component: | Spring | Assignee: | Petr Penicka <ppenicka> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Tomas Repel <trepel> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 2.0.0.DR08 | CC: | kpiwko, maschmid, mnovotny, myarboro, ppenicka, rruss | ||||
Target Milestone: | GA | ||||||
Target Release: | 2.2.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
The SpringContextResourceAdaptor present in Spring versions tested with JBoss Web Framework Kit 2.1.0 violated section 5.3.1 of the JCA 1.5 specification, and did not fully implement JCA 1.5 and 1.6. Consequenly, deployment of RAR archives containing packaged Spring files failed on JBoss Enterprise Application Platform. The issue has been fixed in Spring 3.1.4.RELEASE and Spring 3.2.1.RELEASE, but Spring 3.0.7.RELEASE and Spring 2.5.6.SEC03 are still affected. Description of a workaround that allows successful use of the affected versions has been included in Spring Installation Guide.
|
Story Points: | --- | ||||
Clone Of: | Environment: |
WFK 2.0.0.DR09
EAP 6.0.0.ER1
Spring 3.1.1.RELEASE
Spring 3.0.7.RELEASE
Spring 2.5.6.SEC03
|
|||||
Last Closed: | 2013-06-27 13:36:18 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Tomas Repel
2012-02-22 16:56:14 UTC
Created attachment 565041 [details]
The spring-jmx-rar.rar that cannot be deployed
I added the spring-jmx-rar.rar as an attachment. This bug is likely caused by IronJacamar enforcing JCA 1.6, whereas Spring JMX RAR uses JCA 1.5, where this is not required. This bug is likely caused by IronJacamar enforcing JCA 1.6, whereas Spring JMX RAR uses JCA 1.5, where this is not required. Karel Piwko <kpiwko> made a comment on jira JBPAPP-8200 Attaching a test case. Jesper Pedersen <jpederse> made a comment on jira JBPAPP-8200 JCA 1.5: 5.3.1 - "The application server is allowed to have multiple instances of a ResourceAdapter JavaBean active simultaneously, in the same JVM, provided the instances are not equal. Their equality is determined using the equals method, and therefore, the ResourceAdapter JavaBean is required to implement the equals method." You can disable validation with <archive-validation> in the JCA subsystem. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: SpringContextResourceAdapter present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE and Spring 3.1.0.RELEASE does not fully implement JCA 1.5 (and JCA 1.6) contact. To be more precise, it violates section 5.3.1 of JCA 1.5 specification: "The application server is allowed to have multiple instances of a ResourceAdapter JavaBean active simultaneously, in the same JVM, provided the instances are not equal. Their equality is determined using the equals method, and therefore, the ResourceAdapter JavaBean is required to implement the equals method." To workaround this problem, disable archive validation within JCA subsystem via following configuration: <subsystem xmlns="urn:jboss:domain:jca:1.1"> <archive-validation enabled="false" /> </subsystem> Karel Piwko <kpiwko> updated the status of jira JBPAPP-8200 to Closed Karel Piwko <kpiwko> made a comment on jira JBPAPP-8200 This issue is not JCA 1.5 specification violation by JCA component of EAP, it is rather a bug in Spring implementation of ResourceAdapter. EAP 6 is more strict on enforcing the contract. Rejected, will be documented in WFK2. Filed a bug upstream https://jira.springsource.org/browse/SPR-9162 Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,8 +1,6 @@ -SpringContextResourceAdapter present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE and Spring 3.1.0.RELEASE does not fully implement JCA 1.5 (and JCA 1.6) contact. +The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.0.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. -To be more precise, it violates section 5.3.1 of JCA 1.5 specification: "The application server is allowed to have multiple instances of a ResourceAdapter JavaBean active simultaneously, in the same JVM, provided the instances are not equal. Their equality is determined using the equals method, and therefore, the ResourceAdapter JavaBean is required to implement the equals method." - -To workaround this problem, disable archive validation within JCA subsystem via following configuration: +The workaround for this problem is so disable archive validation within the JCA subsystem. Use this configuration to do so: <subsystem xmlns="urn:jboss:domain:jca:1.1"> <archive-validation enabled="false" /> Paul Gier <pgier> updated the status of jira JBPAPP-8200 to Reopened Paul Gier <pgier> updated the status of jira JBPAPP-8200 to Closed Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,7 +1 @@ -The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.0.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. +The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.0.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. This issue has been fixed with JBoss Web Framework Kit 2 and the problem no longer presents.- -The workaround for this problem is so disable archive validation within the JCA subsystem. Use this configuration to do so: - - <subsystem xmlns="urn:jboss:domain:jca:1.1"> - <archive-validation enabled="false" /> - </subsystem> Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1,8 @@ -The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.0.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. This issue has been fixed with JBoss Web Framework Kit 2 and the problem no longer presents.+The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.0.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. + +The workaround for this problem is so disable archive validation within the JCA subsystem. Use this configuration to do so: + + <subsystem xmlns="urn:jboss:domain:jca:1.1"> + <archive-validation enabled="false" /> + +See https://jira.springsource.org/browse/SPR-9162 for more details. Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1,4 @@ -The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.0.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. +The SpringContextResourceAdaptor present in Spring 2.5.6.SEC03, Spring 3.0.7.RELEASE, and Spring 3.1.1.RELEASE violates section 5.3.1 of the JCA 1.5 specification, and does not fully implement JCA 1.5 and 1.6 contact. The workaround for this problem is so disable archive validation within the JCA subsystem. Use this configuration to do so: Karel, are we still keeping this in the Know Issues in WFK 2.2 docs? Petr, this issue is still valid, although the versions will differ. I think that it would be better to merge it to Spring documentation instead. Lauren: this is one of the issues I mentioned in today's meeting. Please remove the item from known issues in the Release notes and add it to a suitable location in the Spring Developer Guide. Known issue removed from Release Notes: Docs stage URL: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html/Release_Notes_2.2.0/Known_Issues_with_this_release.html Build: JBoss_Web_Framework_Kit-Release_Notes_2.2.0-2.2-en-US-0-3 Info added in a warning box into Spring Installation Guide: Docs stage URL: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html/Spring_Installation_Guide/Inside_Applications.html Build: JBoss_Web_Framework_Kit-Spring_Installation_Guide-2.2-en-US-2.2.0-2 Hi, I have just verified that this issue is now fixed for Spring 3.1.4.RELEASE and 3.2.1.RELEASE. From WFK 2.2.0 perspective, the warning you have added is relevant only for Spring 3.0.7.RELEASE and 2.5.6.SEC03, it should be mentioned there. Thanks for verifying this, fixed book is now available on the docs stage. Docs stage URL: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html/Spring_Installation_Guide/Inside_Applications.html Build: JBoss_Web_Framework_Kit-Spring_Installation_Guide-2.2-en-US-2.2.0-4 The comment 26 has been verified. My opinion is that this issue should be present in fixed issues. Edited doc text to reflect the current situation and included it among fixed issues in the RN book. Docs stage URL: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html-single/2.2.0_Release_Notes/index.html Build: JBoss_Web_Framework_Kit-2.2.0_Release_Notes-2.2-en-US-0-24 |