diff --git a/appserver/payara-appserver-modules/microprofile/openapi/src/main/java/fish/payara/microprofile/openapi/impl/OpenApiService.java b/appserver/payara-appserver-modules/microprofile/openapi/src/main/java/fish/payara/microprofile/openapi/impl/OpenApiService.java index 302f7224096..452cc3cbf1c 100644 --- a/appserver/payara-appserver-modules/microprofile/openapi/src/main/java/fish/payara/microprofile/openapi/impl/OpenApiService.java +++ b/appserver/payara-appserver-modules/microprofile/openapi/src/main/java/fish/payara/microprofile/openapi/impl/OpenApiService.java @@ -181,7 +181,10 @@ public static OpenApiService getInstance() { * @return boolean if the app is a valid target for an OpenAPI document. */ private static boolean isValidApp(ApplicationInfo appInfo) { - return appInfo.getMetaData(WebBundleDescriptorImpl.class) != null; + return appInfo.getMetaData(WebBundleDescriptorImpl.class) != null + && !appInfo.getSource().getURI().getPath().contains("glassfish/lib/install") + && !appInfo.getSource().getURI().getPath().contains("javadb/lib") + && !appInfo.getSource().getURI().getPath().contains("mq/lib"); } /**