Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72445

Service Builder doesn't recognize current old Spring bean elements in portlet-spring.xml

    Details

      Description

      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:

      1. Use the Code Upgrade Tool to upgrade a 6.2 Liferay Plugins SDK that has Liferay's sample-service-builder-portlet.
      2. In portlet-spring.xml, verify the current bean elements for FooLocalService, FooService, and FooPersistence.
      3. ant build-service

      Expected results:
      The portlet-spring.xml should list elements for the same three beans.

      Actual results:
      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.

      Workaround:
      Delete the old Spring bean elements from portlet-spring.xml before running ant build-service

        Attachments

        1. 1.png
          1.png
          23 kB
        2. 2.png
          2.png
          71 kB
        3. 3.png
          3.png
          44 kB
        4. 4.png
          4.png
          118 kB
        5. 70 server.png
          70 server.png
          19 kB
        6. build path.png
          build path.png
          43 kB
        7. config.png
          config.png
          63 kB
        8. joyce portlet-portlet-7.0.0.1.war
          154 kB
        9. reproduced.png
          reproduced.png
          26 kB
        10. reproduced.png
          reproduced.png
          26 kB
        11. upgrade.png
          upgrade.png
          28 kB

          Activity

            People

            Assignee:
            gregory.amerson Gregory Amerson
            Reporter:
            james.hinkey James Hinkey
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              2 years, 17 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP50
                7.0.0 DXP SP8
                Master