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

build-service target in build-common-ext.xml

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 5.2.X EE, 6.0.4 GA, 6.0.5 GA, 6.0.12 EE, 6.1.0 CE RC1
    • Fix Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
    • Labels:
      None
    • Environment:
      Tomcat 6.0 + MySQL 5. 6.0.x Revision 84096.
      Tomcat 6.0 + MySQL 5. 6.1.x Revision 84096.
      Tomcat 6.0 + MySQL 5. 5.2.x Revision 84096.
    • Fix Priority:
      4

      Description

      When you create a service in ext via the build-service target it creates a service.js in docroot/WEB-INF/ext-web/docroot/html/js/liferay/
      When this file copied to the ROOT war it will overwrite the existing service.js file which contains references the javascript interfaces exposed by the liferay portal

      The result is that none of the portal's json services can be called anymore and things like the autosuggest functionality for tags stop working

      A possible fix could be to change

      <jvmarg value="-Dservice.json.file=docroot/WEB-INF/ext-web/docroot/html/js/liferay/service.js" />

      to

      <jvmarg value="-Dservice.json.file=docroot/WEB-INF/ext-web/docroot/html/js/liferay/ext_service.js" />

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 18 weeks ago

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.20 EE GA2