Affects Version/s: 7.0.0 DXP FP13, 7.0.X, Master
Component/s: Core Infrastructure > Service Builder
When you run Service Builder on an upgraded traditional portlet it creates new Spring bean elements in the portlet-spring.xml for beans that are already defined in portlet-spring.xml.
Steps to reproduce:
- Use the Code Upgrade Tool to upgrade a 6.2 Liferay Plugins SDK that has Liferay's sample-service-builder-portlet.
- In portlet-spring.xml, verify the current bean elements for FooLocalService, FooService, and FooPersistence.
- ant build-service
The portlet-spring.xml should list elements for the same three beans.
The portlet-spring.xml has six bean elements: three new bean elements in addition and equivalent to the three existing elements. The only difference between the new and old elements is that the new element attributes are in alphabetical order. It's as if Service Builder didn't notice the existing bean elements and created new equivalent ones.
Delete the old Spring bean elements from portlet-spring.xml before running ant build-service