added /health into servlet mapping

This commit is contained in:
Francesco Mangiacrapa 2024-10-18 17:24:38 +02:00
parent a991055fd6
commit fb6857a984
3 changed files with 16 additions and 10 deletions

View File

@ -8,6 +8,5 @@
<exclude>/srv/docs/*</exclude> <exclude>/srv/docs/*</exclude>
<exclude>/srv/api-docs/*</exclude> <exclude>/srv/api-docs/*</exclude>
<exclude>/srv/health</exclude> <exclude>/srv/health</exclude>
<exclude>/srv/health/*</exclude>
</application> </application>

View File

@ -53,7 +53,7 @@ public class GeoPortalService extends ResourceConfig {
registerClasses(ProfiledDocuments.class); registerClasses(ProfiledDocuments.class);
registerClasses(UseCaseDescriptors.class); registerClasses(UseCaseDescriptors.class);
registerClasses(Plugins.class); registerClasses(Plugins.class);
registerClasses(GeoportalHealth.class); //registerClasses(GeoportalHealth.class);
// registerClasses(DocsGenerator.class); // registerClasses(DocsGenerator.class);
log.info("Setting implementations .. "); log.info("Setting implementations .. ");

View File

@ -1,11 +1,13 @@
<web-app> <web-app>
<servlet> <servlet>
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService</servlet-name> <servlet-name>org.gcube.application.geoportal.service.GeoPortalService
</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer <servlet-class>org.glassfish.jersey.servlet.ServletContainer
</servlet-class> </servlet-class>
<init-param> <init-param>
<param-name>javax.ws.rs.Application</param-name> <param-name>javax.ws.rs.Application</param-name>
<param-value>org.gcube.application.geoportal.service.GeoPortalService</param-value> <param-value>org.gcube.application.geoportal.service.GeoPortalService
</param-value>
</init-param> </init-param>
<init-param> <init-param>
<param-name>jersey.config.server.provider.classnames</param-name> <param-name>jersey.config.server.provider.classnames</param-name>
@ -20,16 +22,21 @@
</servlet> </servlet>
<servlet-mapping> <servlet-mapping>
<servlet-name>default</servlet-name> <servlet-name>default</servlet-name>
<url-pattern>/docs/*</url-pattern> <url-pattern>/docs/*</url-pattern>
</servlet-mapping> </servlet-mapping>
<servlet-mapping> <servlet-mapping>
<servlet-name>default</servlet-name> <servlet-name>default</servlet-name>
<url-pattern>/api-docs/*</url-pattern> <url-pattern>/api-docs/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/health</url-pattern>
</servlet-mapping> </servlet-mapping>
<servlet-mapping> <servlet-mapping>
<servlet-name>org.gcube.application.geoportal.service.GeoPortalService</servlet-name> <servlet-name>org.gcube.application.geoportal.service.GeoPortalService
</servlet-name>
<url-pattern>/srv/*</url-pattern> <url-pattern>/srv/*</url-pattern>
</servlet-mapping> </servlet-mapping>
</web-app> </web-app>