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

Missing dependency causes JVM to System.exit(1)


    • OS:
      Ubuntu LTS 14.04
    • JDK:
      Oracle Sun JDK 8
    • Application Servers:
      Apache Tomcat 9.0.x
    • Browsers:
      Chrome (latest)
    • Databases:
      MySQL 5.7
    • Device Type:


      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

      1. Define a system env variable called JENKINS_HOME
      2. Start the tomcat server
      3. Create a Module A and deploy it
      4. Create a Module B with a dependency on Module A (@Reference) and deploy it
      5. Remove Module A either by doing a gradlew clean on the project module, or by removing the jar from the osgi/modules directory

      Expected Results

      Module A is removed from the directory and Module B changes from Active state to Resolved due to missing (mandatory) dependencies.

      Actual Results

      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-






            • Assignee:
              support-lep@liferay.com SE Support
              jardineworks Andrew Jardine
              Participants of an Issue:
              Recent user:
              Andrew Jardine
            • Votes:
              2 Vote for this issue
              4 Start watching this issue


              • Created:
                Days since last comment:
                1 year, 10 weeks, 3 days ago


                Version Package