--- jbossweb-2.1.13/java/org/apache/jasper/xmlparser/ParserUtils.java.orig	2012-08-02 15:58:07.482349415 -0400
+++ jbossweb-2.1.13/java/org/apache/jasper/xmlparser/ParserUtils.java	2012-08-02 16:00:46.077349883 -0400
@@ -90,7 +90,7 @@
                createDocumentBuilderFactory();
             factory.setNamespaceAware(true);
             factory.setValidating(validating);
-            DocumentBuilder builder = factory.newDocumentBuilder();
+            DocumentBuilder builder = newDocumentBuilder(factory);
             builder.setEntityResolver(entityResolver);
             builder.setErrorHandler(errorHandler);
             document = builder.parse(is);
@@ -200,6 +200,20 @@
        }
        return factory;
     }
+
+    protected static DocumentBuilder newDocumentBuilder(DocumentBuilderFactory factory) throws ParserConfigurationException
+    {
+       ClassLoader cl = Thread.currentThread().getContextClassLoader();
+       try
+       {
+          Thread.currentThread().setContextClassLoader(ParserUtils.class.getClassLoader());
+          return factory.newDocumentBuilder();
+       }
+       finally
+       {
+          Thread.currentThread().setContextClassLoader(cl);
+       }
+    }
 }
 
 
@@ -248,4 +262,4 @@
     public void fatalError(SAXParseException ex) throws SAXException {
         throw ex;
     }
-}
\ No newline at end of file
+}
