Juan Hernandez has uploaded a new change for review.

Change subject: restapi: VmHelper isn't a resource
......................................................................

restapi: VmHelper isn't a resource

The VmHelper class isn't a resource, but it is added to the list of
singletons used by the RESTAPI, currently this just causes the following
warning during deployment:

  2014-04-04 18:02:25,964 WARNING
  [org.jboss.resteasy.spi.ResteasyDeployment] (ajp--127.0.0.1-8702-1)
  Application.getSingletons() returned unknown class type:
  org.ovirt.engine.api.restapi.util.VmHelper

But in the future it may cause an error if the infrastructure becomes
more strict, so it is better to remove it now.

Change-Id: If4865a2266d7a17615896582100e1e4dfa16482b
Signed-off-by: Juan Hernandez <[email protected]>
---
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/BackendApplication.java
1 file changed, 0 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/32/26432/1

diff --git 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/BackendApplication.java
 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/BackendApplication.java
index 5b7d9e1..7534988 100644
--- 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/BackendApplication.java
+++ 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/BackendApplication.java
@@ -68,7 +68,6 @@
 import org.ovirt.engine.api.restapi.security.auth.LoginValidator;
 import org.ovirt.engine.api.restapi.types.MappingLocator;
 import org.ovirt.engine.api.restapi.util.SessionHelper;
-import org.ovirt.engine.api.restapi.util.VmHelper;
 import org.ovirt.engine.core.common.interfaces.BackendLocal;
 
 @ApplicationPath("/")
@@ -142,7 +141,6 @@
         addResource(new BackendStorageServerConnectionsResource());
         addResource(new BackendVnicProfilesResource());
         addResource(new BackendSystemPermissionsResource());
-        addResource(VmHelper.getInstance());
 
         // Authentication singletons:
         final BasicAuthorizationScheme scheme = new BasicAuthorizationScheme();


-- 
To view, visit http://gerrit.ovirt.org/26432
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If4865a2266d7a17615896582100e1e4dfa16482b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to