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

import "com.liferay.portal.scripting.executor.groovy.GroovyScriptingContext" is not working

    Details

      Description

      Steps to reproduce

      1. Setup clean bundle and install DE-42
      2. Start Liferay and navigate to "Server Administration"
      3. Navigate to "Script" and execut "import com.liferay.portal.scripting.executor.groovy.GroovyScriptingContext" with Groovy"

      Actual result
      The follwing error is thrown.

      2018-03-27 06:50:00.202 ERROR [http-nio-8080-exec-9][EditServerMVCActionCommand:475] SanitizerLogWrapper warning: Following message contains CRLF characters
      startup failed:
      Script1.groovy: 1: unable to resolve class com.liferay.portal.scripting.executor.groovy.GroovyScriptingContext
       @ line 1, column 1.
         import com.liferay.portal.scripting.executor.groovy.GroovyScriptingContext
         ^
      
      1 error

      Expected result
      No error is thrown.

      Reproduced in
      DE-42
      70x: f992895d7bce589945cc2cf7b9e0e0be95e763ec
      master: efcf5dbdce822db51945216cdb0e05634cb73489

      Not reproduced in
      DE-32

        Attachments

          Activity

            People

            Assignee:
            sharry.shi Sharry Shi
            Reporter:
            david.zhang David Zhang (Inactive)
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 6 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP44
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X