Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Time:2022-6-10

Problem description

When I try to deploy an SAP ui5 application to the sap business technology platform using the business application studio of SAP Chengdu Research Institute, run the command linenpm run deploy, encountered the following error message:

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Error retrieving MTA: Could not find MTA mta_archives/archive.mtar

problem analysis

Find the sap ui5 application folder, and there is no such folder namedmta_archives/archive.mtarFile for.

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

When creating an application based on the template, if you can select the multi target application template,

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

You can manually add HTML5 modules to this MTA application:
Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Then build the application to generatemtarFile, and then it can be deployed.

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Returning to our actual example, we can indeed create an MTA application from a template:

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

But now we have a Java application.

First, submit our current project code to GitHub:

https://4f8ae60dtrial.us10cf….

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

An error is reported when pushing: git:fatal: no configured push destination

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

We use the command linecds add mtaAutomatically generate an MTA for Java applications Yaml file:

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

An MTA is automatically generated Yaml file, which contains a Java module:

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

implementmbt buildCommand, will executemta.yamlDefined in the documentbuild task
Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Finally, the archive file is successfully generated:
Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

I didn’t use this Java application beforecds add mtaDirect usecf pushDeployment of.

Today, withDeploy MTA ArchiveMenu to deploy:

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

An application is generated after deployment, but theErrorTips:
Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

After clicking application routes:

404 Not Found: Requested route (‘4f8ae60dtrial-dev-bookstore-srv.cfapps.us10.hana.ondemand.com’) does not exist.
Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

Many errors:

Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.

When we usecf pushWhen deploying a single Java application, the file used ismanifest.yaml:

---
applications:
- name: bookstore
  path: srv/target/bookstore-exec.jar
  random-route: true
  services:
  - bookstore-hana

In the project folderdefault-env.jsonIt contains the URL and access credentials of Hana cloud instance on SAP BTP.

Error retrieving MTA error message encountered when deploying SAP ui5 application to sap BTP

And mta In the yaml file, the Java application is not associated with the Hana cloud instance on the sap BTP at all, so the JDBC error is reported when starting.