This page provides solutions on known issues related to SAP Java Buildpack 1 and 2.
If you can't find a solution to your problem, create an incident to component BC-CP-CF-BLDP.
To learn how to start, see: Troubleshooting
When trying to execute a Java application running on Apache TomEE 1.7, the following error appears:
SEVERE: Unhandled exception in Buildpack main method: None of the available runtimes [Tomee7, Tomcat, Java Main] supports the application in the specified path.
Since May 5, 2022, Apache TomEE 1.x is no longer supported by SAP Java Buildpack 1 (effective version 1.53.0). See: Release Notes
You need to modify your Java applications to run on Apache TomEE 7 instead. To do that, follow the solution below.
-
Configure the
manifest.ymlfile of your Java application:-
Make sure that the
buildpackvariable is set tosap_java_buildpack. If pinned to a particular version, it must be at least 1.53.0. -
For the TARGET_RUNTIME variable, replace
tomeewithtomee7. To learn more, see TomEE 7.For example:
--- applications: - name: myapp path: .\target\myapp.jar buildpacks: - sap_java_buildpack . . . env: TARGET_RUNTIME: tomee7 JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
-
-
Check the information provided for Apache TomEE: Migrate from TomEE 1 to TomEE 7
-
Besides the TARGET_RUNTIME variable, additional setups are needed. Please follow the guide for using TomEE 7.
-
After applying the new change, if your application fails with an OutOfMemoryError exception, change your memory size configuration. See:
You have a working Java application, which runs on sap_java_buildpack (SAP Java Buildpack 1). After restage or redeploy, it fails and is no longer working. In the logs, you see the following error message:
For application '<app_name>': Specified unknown buildpack name: "sap_java_buildpack"
FAILED
As previously announced, sap_java_buildpack has been deprecated. It was removed from SAP BTP, Cloud Foundry environment on October 30, 2025.
To keep your Java applications up and running, you need to migrate to SAP Java Buildpack 2 as soon as possible. To learn how, see: Migrate your Applications to SAP Java Buildpack 2
In exceptional cases (if you haven’t managed to migrate yet), you can keep using SAP Java Buildpack 1 till the end of 2025. To do that:
- Open your manifest.yml or mtad.yaml file.
- Replace
sap_java_buildpackwithsap_java_buildpack_to_be_removed. - Restage or redeploy your application.
This is just a temporary solution – please migrate to SAP Java Buildpack 2 as soon as you can!