diff --git a/gcube/extra-resources/WEB-INF/web.xml b/gcube/extra-resources/WEB-INF/web.xml
index d0105af..cb8b3c5 100644
--- a/gcube/extra-resources/WEB-INF/web.xml
+++ b/gcube/extra-resources/WEB-INF/web.xml
@@ -6,12 +6,7 @@
${project.name}
${project.description}
- service
- org.glassfish.jersey.servlet.ServletContainer
-
- jersey.config.server.provider.packages
- org.gcube.resourcemanagement.rest
-
+ org.gcube.resourcemanagement.RMInitializer
default
@@ -22,7 +17,7 @@
/api-docs/*
- service
+ org.gcube.resourcemanagement.RMInitializer
/*
\ No newline at end of file
diff --git a/src/main/java/org/gcube/resourcemanagement/RMInitializer.java b/src/main/java/org/gcube/resourcemanagement/RMInitializer.java
new file mode 100644
index 0000000..5708e0e
--- /dev/null
+++ b/src/main/java/org/gcube/resourcemanagement/RMInitializer.java
@@ -0,0 +1,20 @@
+package org.gcube.resourcemanagement;
+
+import javax.ws.rs.ApplicationPath;
+
+import org.gcube.resourcemanagement.rest.BaseREST;
+import org.gcube.smartgears.annotations.ManagedBy;
+import org.glassfish.jersey.server.ResourceConfig;
+
+/**
+ * @author Luca Frosini (ISTI - CNR)
+ */
+@ApplicationPath("/")
+@ManagedBy(ResourceManager.class)
+public class RMInitializer extends ResourceConfig {
+
+ public RMInitializer() {
+ packages(BaseREST.class.getPackage().toString());
+ }
+
+}