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 line
npm run deploy, encountered the following error message:
Error retrieving MTA: Could not find MTA mta_archives/archive.mtar
Find the sap ui5 application folder, and there is no such folder named
When creating an application based on the template, if you can select the multi target application template,
You can manually add HTML5 modules to this MTA application:
Then build the application to generate
mtarFile, and then it can be deployed.
Returning to our actual example, we can indeed create an MTA application from a template:
But now we have a Java application.
First, submit our current project code to GitHub:
An error is reported when pushing: git:fatal: no configured push destination
We use the command line
cds add mtaAutomatically generate an MTA for Java applications Yaml file:
An MTA is automatically generated Yaml file, which contains a Java module:
mbt buildCommand, will execute
mta.yamlDefined in the document
Finally, the archive file is successfully generated:
I didn’t use this Java application before
cds add mtaDirect use
cf pushDeployment of.
Deploy MTA ArchiveMenu to deploy:
An application is generated after deployment, but the
After clicking application routes:
404 Not Found: Requested route (‘4f8ae60dtrial-dev-bookstore-srv.cfapps.us10.hana.ondemand.com’) does not exist.
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
When we use
cf pushWhen deploying a single Java application, the file used is
--- applications: - name: bookstore path: srv/target/bookstore-exec.jar random-route: true services: - bookstore-hana
In the project folder
default-env.jsonIt contains the URL and access credentials of Hana cloud instance on 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.