Change in ovirt-engine[engine_3.2]: restapi: Use context classloader from YAML

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon Mar 11 15:00:43 UTC 2013


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Use context classloader from YAML
......................................................................


restapi: Use context classloader from YAML

The YAML library that we use to build load the RSDL metadata assumes
that it can load classes using from its own class loader, and this is
incorrect, specially now the the library is loaded from a JBoss module.
The correct way to load classes is to use the context class loader, so
it will work regardless of where in the application the classes are
located.

Change-Id: Iad370caa7940c3c5883bc21b34d1eea73cfc63d5
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 2fd239a065877c20ea580926e28d6603f6fe1d75)
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/rsdl/RsdlBuilder.java
M backend/manager/modules/restapi/webapp/pom.xml
A backend/manager/modules/restapi/webapp/src/main/resources/META-INF/MANIFEST.MF
3 files changed, 13 insertions(+), 1 deletion(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iad370caa7940c3c5883bc21b34d1eea73cfc63d5
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: engine_3.2
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>



More information about the Engine-commits mailing list