Affects Version/s: 7.0.X, 7.1.X
Fix Version/s: None
OS:Ubuntu LTS 14.04
JDK:Oracle Sun JDK 8
Application Servers:Apache Tomcat 9.0.x
I finally figured this one out. On my local (developer) machine I have a Jenkins install. As such, I have a JENKINS_HOME env. variable defined. In this scenario, missing dependencies between modules causes the JVM to exit.
Steps to Reproduce
- Define a system env variable called JENKINS_HOME
- Start the tomcat server
- Create a Module A and deploy it
- Create a Module B with a dependency on Module A (@Reference) and deploy it
- Remove Module A either by doing a gradlew clean on the project module, or by removing the jar from the osgi/modules directory
Module A is removed from the directory and Module B changes from Active state to Resolved due to missing (mandatory) dependencies.
There is an error in the log stating that the JVM is exiting due to the missing dependencies
The culprint: https://github.com/liferay/liferay-portal/blob/65059440dfaf2b8b365a20f99e83e4cdb15478aa/modules/core/portal-equinox-log-bridge/src/main/java/com/liferay/portal/equinox/log/bridge/internal/PortalSynchronousLogListener.java#L106
Blog post describing in detail: https://community.liferay.com/blogs/-/blogs/exiting-the-jvm-