Pushing a Java App with JDK Version 15 Causes Staging Failure
search cancel

Pushing a Java App with JDK Version 15 Causes Staging Failure

book

Article ID: 298234

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

From Java Buildpack version 4.33+, it should be possible to set the JDK/JRE version to Java 15, by setting the following environment variable:

JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 15.0.+ }}' .

However, a bug within the buildpack results in the following error when staging an app using JDK/JRE 15:

[Buildpack] ERROR Finalize failed with exception # Unable to find cached file for https://java-buildpack.cloudfoundry.org/openjdk/bionic/x86_64/bellsoft-jre15.0.1%2B9-linux-amd64.tar.gz
Failed to compile droplet: Failed to run finalize script: exit status 1
-----> Downloading Open Jdk JRE 15.0.1_9 from https://java-buildpack.cloudfoundry.org/openjdk/bionic/x86_64/bellsoft-jre15.0.1%2B9-linux-amd64.tar.gz
Exit status 223
BuildpackCompileFailed - App staging failed in the buildpack compile phase

Environment

Product Version: 2.10

Resolution

The issue is resolved in version 4.36 of the offline buildpack, which can be downloaded from Tanzu Network and added to your environment with the 'cf create-buildpack' command of the CF CLI. It will be included in a future release of VMware Tanzu Application Service for VMs.