cancel
Showing results for 
Search instead for 
Did you mean: 

error in web module while deploying application in XSA

0 Kudos
1,240

I am trying to deploy my mta application xsa. It is successfully deploying db and back-end module but it is failing while deploying the ui module with the error in log as:

SYS #2.0#2020 11 17 04:29:37:372#-03:00#INFO#/Configuration#####khlnp6jg##########khlnp6jg#PLAIN##Replacing $XSAPPNAME will not take place - 'xsappname' property not found in UAA configuration.# (9223372036854775792)[1605598177375] [APP/11-2] ERR /hana/shared/HD1/xs/app_working/as1-100-50/executionroot/32ab060b-947e-44d0-b0ed-8365a680170d/app/node_modules/@sap/approuter/lib/configuration.js:64 (9223372036854775793)[1605598177375] [APP/11-2] ERR throw new Error('No UAA service found');

my mta.yaml file is as follow

- name: testweb
    type: html5
    path: testweb
    parameters:
      disk-quota: 512M
      memory: 256M
    requires:
      - name: test_uaa
      - name: dest_testmigartion
      - name: xsjs_api
        group: destinations
        properties:
          forwardAuthToken: true
          strictSSL: false
          name: xsjs_api
          url: '~{url}'

resources:
  - name: test_uaa
    type: org.cloudfoundry.existing-service

Accepted Solutions (1)

Accepted Solutions (1)

Valeck
Participant

strange to me it works, this is the file tree:

0 Kudos

yes I am miniating it similarly. I tried to create uaa manually by adding the json of xs-surity.json file and changed the type of uaa in mat.yaml as existing. But, the error I am getting is same as I have mentioned in my question.

Answers (2)

Answers (2)

WouterLemaire
Active Contributor

I had similar problem and solved it by changing the service-plan to “default” instead of “application”

0 Kudos

Hi Wouter,

Thank you for the response,

but I am getting the same error even after changing the service plan to :default".

Valeck
Participant

hi Pavithra,

in my mta.yaml i have defined uaa like this:

modules:
  - name: <name>_appRouter
    type: approuter.nodejs
    path: <name>_appRouter
    parameters:
      disk-quota: 256M
      memory: 256M
    requires:
      - name: <name>_html5_repo_runtime
      - name: uaa_<name>
      - name: dest_<name>
      - name: conn_<name>
      - name: portal_resources_<name>
[...]
  - name: uaa_<name>
    parameters:
      path: ./xs-security.json
      service-plan: application
      service: xsuaa
    type: org.cloudfoundry.managed-service

in xs-security.json

{
  "xsappname": "<name>",
  "tenant-mode": "dedicated",
  "description": "Security profile of called application",
  "scopes": [
    {
      "name": "uaa.user",
      "description": "UAA"
    }
  ],
  "role-templates": [
    {
      "name": "Token_Exchange",
      "description": "UAA",
      "scope-references": [
        "uaa.user"
      ]
    }
  ]
}

I hope I was helpful

bye.