The “java” cookbook now installs OpenJDK instead of Sun’s JDK.
However, other cookbooks which use Java (JIRA, Tomcat) currently use
an incorrect or inconsistent Java home - some hardcoded to the Sun
path (e.g. /usr/lib/jvm/java-6-sun in the case of JIRA), or
/usr/lib/jvm/java in the case of Tomcat.
Also, the tomcat package has the dependency on the java recipe commented.
The result is that these cookbooks don’t work “out of the box”.
What’s the right way to resolve this?
In my opinion, the best thing would be to keep a symlink at
/usr/lib/jvm/java which points to the current java home. I’m not sure
if this should be a change in chef or the openjdk packages…