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

blade watch crashes when trying to deploy JSP modifications to docker

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 7.0.X, 7.1.X, 7.2.X, 7.3.X
    • Component/s: Dev Tools
    • Environment:
    • Branch Version/s:
      7.3.x, 7.2.x, 7.1.x, 7.0.x
    • Backported to Branch:
      Committed

      Description

      When trying to use blade watch for JSP modifications the command crashes with the following message: 

      Watching files in /home/berndt/liferay-development/liferay-workspace/modules/my-mvc-portlet. Press Crtl + C to stop.
      /home/berndt/liferay-development/liferay-workspace/modules/my-mvc-portlet/src/main/resources/META-INF/resources/view.jsp has changed, fast deploying...

      > Task :modules:my-mvc-portlet:buildCSS
      Using native Sass compiler
      There are no files to compile

      > Task :modules:my-mvc-portlet:generateJSPJava FAILED

      FAILURE: Build failed with an exception.

      • What went wrong:
        Execution failed for task ':modules:my-mvc-portlet:generateJSPJava'.
        > Provider for class javax.xml.parsers.SAXParserFactory cannot be created
      • Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

      BUILD FAILED in 3s
      5 actionable tasks: 3 executed, 2 up-to-date
      Error: watch
      Gradle error executing task 'deployFast -a' in /home/berndt/liferay-development/liferay-workspace/modules/my-mvc-portlet
      com.liferay.blade.cli.gradle.GradleExecutionException: Gradle error executing task 'deployFast -a' in /home/berndt/liferay-development/liferay-workspace/modules/my-mvc-portlet
      at com.liferay.blade.cli.gradle.GradleExec.executeTask(GradleExec.java:90)
      at com.liferay.blade.cli.command.WatchCommand$3.run(WatchCommand.java:376)
      Suppressed: java.lang.UnsupportedOperationException
      at sun.nio.fs.UnixFileSystem.close(UnixFileSystem.java:127)
      at com.liferay.blade.cli.command.WatchCommand$3.run(WatchCommand.java:400)

       

      How to reproduce: 

      1. Install Developer Studio 3.9.0
      2. Import liferay-workspace created by installer
      3. Start docker container with startDockerContainer
      4. Create a new Liferay Modulde Project (mvc-portlet)
      5. Open terminal
      6. cd $LIFERAY_WORKSPACE/modules/<your-mvc-portlet>
      7. Launch blade watch
      8. Bundle is successfully built, deployed, and started
      9. Modify (portlet) class
      10. Bundle is successfully built, deployed, and restarted
      11. Modifiy JSP file (e.g. view.jsp)
      12. blade watch crashes with the message above

        Attachments

          Activity

            People

            Assignee:
            ideengsup Dev Tools Engineering Support
            Reporter:
            christian.berndt Christian Berndt
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 weeks ago

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                7.3.X