Cloud Foundry Error – Buildpack “java_buildpack” must be an existing

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Error

$ cf push first-push -p summit-hands-on-labs/basel-2018/first-push/first-push-app -b java_buildpack --random-route
Pushing app first-push to org test-org / space test-space as admin...
Packaging files to upload...
Uploading files...
 83.49 KiB / 83.49 KiB [======================================================================================] 100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs...
Buildpack "java_buildpack" must be an existing buildpack configured for use with kpack
FAILED

Solution

$ cf push first-push -p first-push-app -b java_buildpack --random-route

$ cf buildpacks
Getting buildpacks as admin...

position   name                            stack                         enabled   locked   filename
0          paketo-buildpacks/ruby          io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/ruby@0.7.1
0          paketo-buildpacks/dotnet-core   io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/dotnet-core@0.4.1
0          paketo-buildpacks/nodejs        io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/nodejs@0.6.1
0          paketo-buildpacks/go            io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/go@0.9.0
0          paketo-community/python         io.buildpacks.stacks.bionic   true      false    paketo-community/python@0.4.3
0          paketo-buildpacks/php           io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/php@0.5.1
0          paketo-buildpacks/nginx         io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/nginx@0.3.1
0          paketo-buildpacks/httpd         io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/httpd@0.1.1
0          paketo-buildpacks/java          io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/java@5.11.0
0          paketo-buildpacks/procfile      io.buildpacks.stacks.bionic   true      false    paketo-buildpacks/procfile@4.2.2


wget https://github.com/cloudfoundry/java-buildpack/releases/download/v4.41/java-buildpack-v4.41.zip
cf create-buildpack java-buildpack java-buildpack-v4.41.zip


git clone https://github.com/paketo-buildpacks/samples
cd samples
cf create-buildpack my-custom-java-bp1 https://github.com/cloudfoundry/java-buildpack 100