Closed csutherl closed 4 years ago
Merging #69 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #69 +/- ##
=======================================
Coverage 90.11% 90.11%
=======================================
Files 43 43
Lines 3146 3146
=======================================
Hits 2835 2835
Misses 311 311
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b2ed00c...55bb3d5. Read the comment docs.
To reproduce, you must install tomcat and an openjdk JRE (prior to version 9, the path changed then). See steps below:
1) Install tomcat (which installs java-1.8.0-openjdk, by default), install java-1.7.0-openjdk so that you have a java install to switch to, and add java7 as the location for your JAVA_HOME variable:
2) Start tomcat and observe that it still uses the alternatives version:
3) Install the java-1.7.0-openjdk-devel package (full JDK distribution):
Note: If you enable JAVAPACKAGES_DEBUG before sources the java-functions file in the tomcat/functions script, you can see which java bin is found:
Without the JDK (devel package) installed
With JDK installed
The debug messages above are generated by the java-functions script's
set_javacmd()
function, see the following snippet:Note from the logic above that if your JAVA_HOME directory does not contain
jre/sh/java
orbin/java
it falls back to using the alternatives version (i.e.which java
output). The java-1.7.0-openjdk and java-1.8.0-openjdk packages have the java binary located injre/bin/java
, notjre/sh/java
, so the path should be added to the list of location checked.