Commented the rule to not add specific MP endpoints if they are the only ones available. This needs to be rethinked, since there are cases where the endpoints are needed without additional REST endpoints.
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/0da00250 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/0da00250 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/0da00250 Branch: refs/heads/master Commit: 0da00250d251129621d285e6c1cd590d88966ca1 Parents: 2bf908e Author: Roberto Cortez <radcor...@yahoo.com> Authored: Thu Dec 20 10:49:59 2018 +0000 Committer: Roberto Cortez <radcor...@yahoo.com> Committed: Thu Dec 20 11:00:03 2018 +0000 ---------------------------------------------------------------------- .../main/java/org/apache/openejb/server/rest/RESTService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/0da00250/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java ---------------------------------------------------------------------- diff --git a/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java b/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java index d9dc64d..9da7fd1 100644 --- a/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java +++ b/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java @@ -256,10 +256,12 @@ public abstract class RESTService implements ServerService, SelfManaging { } } + /* boolean isMicroProfileOnlyEndpoints = webApp.restClass.stream().allMatch(name -> name.startsWith("org.apache.geronimo.microprofile")); + */ - if (webApp.restApplications.isEmpty() && !isMicroProfileOnlyEndpoints) { + if (webApp.restApplications.isEmpty() /*&& !isMicroProfileOnlyEndpoints*/) { final Application application = new InternalApplication(null); for (final String clazz : webApp.restClass) { try {