Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message "Not found" at runtime #138

Open
pazodoble opened this issue Mar 31, 2025 · 0 comments
Open

Message "Not found" at runtime #138

pazodoble opened this issue Mar 31, 2025 · 0 comments
Labels

Comments

@pazodoble
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants