Details

      Description

      When a module has a script that gets run upon deployment, redeploying the module causes a large stacktrace of exceptions.

      • Create module with folder resources/META_INF/resources/scripts
      • Add script to folder
      • Deploy module
      • Script runs without errors
      • Redeploy module

      This seems to be tied with the osgi/state folder. It seems to be looking for the folder of the last deployment. This exception can also be replicated when the module is removed from the server.

      Note: Default log level may be too low to see exception. Set log level for "com.liferay.portal.scripting.executor" to ALL

      EDIT: This error seems to happen because the script tries to run when the bundle is stopped, which it can't find because it gets removed in the redeployment process.

        Attachments

          Activity

            People

            Assignee:
            haoliang.wu Haoliang Wu (Inactive)
            Reporter:
            dylan.rebelak Dylan Rebelak (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.0.1 CE GA2