-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: Master
-
Component/s: Dev Tools
-
Labels:
-
Environment:openjdk version "1.8.0_272"
OpenJDK Runtime Environment (build 1.8.0_272-8u272-b10-0+deb9u1-b10)
OpenJDK 64-Bit Server VM (build 25.272-b10, mixed mode)
Liferay Developer Studio: Version: 3.9.0.202010130127-ga1
com.liferay.gradle.plugins.workspace", version: "3.0.11" (created by installer)
liferay.workspace.product=dxp-7.3-ga1 (default)
blade version 4.0.5.202010080037
openjdk version "1.8.0_272" OpenJDK Runtime Environment (build 1.8.0_272-8u272-b10-0+deb9u1-b10) OpenJDK 64-Bit Server VM (build 25.272-b10, mixed mode) Liferay Developer Studio: Version: 3.9.0.202010130127-ga1 com.liferay.gradle.plugins.workspace", version: "3.0.11" (created by installer) liferay.workspace.product=dxp-7.3-ga1 (default) blade version 4.0.5.202010080037
-
Branch Version/s:7.3.x, 7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
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.
- Get more help at https://help.gradle.org
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:
- Install Developer Studio 3.9.0
- Import liferay-workspace created by installer
- Start docker container with startDockerContainer
- Create a new Liferay Modulde Project (mvc-portlet)
- Open terminal
- cd $LIFERAY_WORKSPACE/modules/<your-mvc-portlet>
- Launch blade watch
- Bundle is successfully built, deployed, and started
- Modify (portlet) class
- Bundle is successfully built, deployed, and restarted
- Modifiy JSP file (e.g. view.jsp)
- blade watch crashes with the message above