Author: clebert.suconic(a)jboss.com
Date: 2011-10-06 17:08:06 -0400 (Thu, 06 Oct 2011)
New Revision: 11489
Modified:
branches/Branch_2_2_EAP/src/main/org/hornetq/utils/XMLUtil.java
Log:
Back porting HORNETQ-681
Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/utils/XMLUtil.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/utils/XMLUtil.java 2011-10-06 21:04:20
UTC (rev 11488)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/utils/XMLUtil.java 2011-10-06 21:08:06
UTC (rev 11489)
@@ -481,7 +481,7 @@
{
SchemaFactory factory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
- Schema schema =
factory.newSchema(Thread.currentThread().getContextClassLoader().getResource(schemaFile));
+ Schema schema = factory.newSchema(ClassloadingUtil.findResource(schemaFile));
Validator validator = schema.newValidator();
// validate the DOM tree