Adding web.xml to properly manage GCatInitializator

This commit is contained in:
Luca Frosini 2022-12-13 11:46:43 +01:00
parent ea3c484c31
commit 94ebf3830c
2 changed files with 13 additions and 0 deletions

View File

@ -4,12 +4,14 @@ import javax.ws.rs.ApplicationPath;
import org.gcube.gcat.rest.Item;
import org.gcube.gcat.rest.administration.Configuration;
import org.gcube.smartgears.annotations.ManagedBy;
import org.glassfish.jersey.server.ResourceConfig;
/**
* @author Luca Frosini (ISTI - CNR)
*/
@ApplicationPath("/")
@ManagedBy(GCatInitializator.class)
public class ResourceInitializer extends ResourceConfig {
public ResourceInitializer() {

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<web-app>
<servlet>
<servlet-name>org.gcube.gcat.ResourceInitializer</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>org.gcube.gcat.ResourceInitializer</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>