Details

    • 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:
      Desktop

      Description

      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-

       

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Days since last comment:
                31 weeks, 2 days ago

                Packages

                Version Package