JDK_JAVA_OPTIONS from Bamboo's catalina.sh impacting java calls in jobs using java11

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Builds
    • None
    • 0
    • 5

      # Add the JAVA 9 specific start-up parameters required by Tomcat
      JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang=ALL-UNNAMED"
      JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.io=ALL-UNNAMED"
      JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
      export JDK_JAVA_OPTIONS
      

      All java calls get:

      Picked up JDK_JAVA_OPTIONS: ...

      This can also impact the builds of java code.

      Expected behaviour

      Bamboo does not pass JDK_JAVA_OPTIONS nor JAVA_TOOL_OPTIONS inherited from Tomcat to invocations of java-related commands.

      Potential impact

      Can impact java builds run on the local agents.

      Workaround

      Edit BAMBOO_INSTALL/bin/catalina.sh and comment out lines which define JDK_JAVA_OPTIONS.

              Assignee:
              Unassigned
              Reporter:
              Bob Swift {Appfire}
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: