Bug 746970
Summary: | Spring component scanning does not work with Spring 2.5 and EAP 6 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Oliver Kišš <okiss> | ||||||
Component: | Spring | Assignee: | Marius Bogoevici <mariusb> | ||||||
Status: | CLOSED WORKSFORME | QA Contact: | |||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 2.0.0.GA | CC: | kpiwko, mnovotny, oskutka, rnewton, rruss | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-04-05 02:45:55 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
Oliver Kišš
2011-10-18 12:50:41 UTC
Running Spring 2.5 on EAP5 or later requires the use of Snowdrop. http://docs.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/1.2/html/Snowdrop_User_Guide/ch02.html#id3193965 Created attachment 528939 [details]
WAR of an affected application
I didn't provide enough information, I'm sorry. Snowdrop is being used. I added attachment with WAR of the application. Tech note? Marius, could you fill technical note for this? 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: TBD Drafted a technical note, let me know what you think. 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 @@ -TBD+The Spring context:component-scan fails to auto-detect classes with Spring 2.5 on EAP 6. The workaround for this issue is to manually define the classes in the XML. Created attachment 569268 [details]
WAR with corrections
Corrections made as follows:
- fixed web.xml to enable Snowdrop correctly
- replaced Snowdrop 2.0.0.CR1 with 2.0.3.Final (as used by WFK2)
I don't think we need a technical note for this as the issue is obsolete. The reason why the submitted example failed was that Snowdrop was enabled incorrectly (verified and attached working example with Snowdrop enabled correctly). It can be verified by navigating to http://localhost:8080/petclinic-fixed/addPet.do (controller is enabled_ Please note that http://localhost:8080/petclinic-fixed/welcome.do does not work in this version because ClinicController is annotated with @Component instead of @Controller Deleted Technical Notes Contents. Old Contents: The Spring context:component-scan fails to auto-detect classes with Spring 2.5 on EAP 6. The workaround for this issue is to manually define the classes in the XML. Confirmed, should be closed and removed. |