When implementing ORD for a CAP service developed in Java, the generation of JSON descriptions at CDS build time works properly:
/src/main/resources/ord/open-resource-discovery.json
/srv/src/main/resources/ord/srv.json
However, in BTP environment, it was not possible to access the ORD entry-point at runtime. Instead of returning JSON for the [base URL]/.well-known/open-resource-discovery URL as expected, the message "Not found" is displayed.
The whole step by step procedure to implement ORD, especially the update of the srv/pom.xml file, is described here: https://wiki.one.int.sap/wiki/pages/viewpage.action?pageId=5054189656
This has been demonstrated to work for a local URL like http://localhost:4004/.well-known/open-resource-discovery
So, at the current state, we might need to serve own routes through adapting Java servlets - which is less convenient.
We could demonstrate that this problem is not caused by missing route in the Approuter (
https://github.wdf.sap.corp/CloudConso/grdc-approuter/blob/main/approuter/xs-app.json).
During CDS build, in the logs, we cannot see the expected line:
"Servlet OrdServlet mapped to /.well-known/open-resource-discovery"
Related issue: #114
When implementing ORD for a CAP service developed in Java, the generation of JSON descriptions at CDS build time works properly:
/src/main/resources/ord/open-resource-discovery.json
/srv/src/main/resources/ord/srv.json
However, in BTP environment, it was not possible to access the ORD entry-point at runtime. Instead of returning JSON for the [base URL]/.well-known/open-resource-discovery URL as expected, the message "Not found" is displayed.
The whole step by step procedure to implement ORD, especially the update of the srv/pom.xml file, is described here: https://wiki.one.int.sap/wiki/pages/viewpage.action?pageId=5054189656
This has been demonstrated to work for a local URL like http://localhost:4004/.well-known/open-resource-discovery
So, at the current state, we might need to serve own routes through adapting Java servlets - which is less convenient.
We could demonstrate that this problem is not caused by missing route in the Approuter (
https://github.wdf.sap.corp/CloudConso/grdc-approuter/blob/main/approuter/xs-app.json).
During CDS build, in the logs, we cannot see the expected line:
"Servlet OrdServlet mapped to /.well-known/open-resource-discovery"
Related issue: #114