xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41931] New: - XPathFactory only searches system classloader for service files
Date Thu, 22 Mar 2007 18:47:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41931>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41931

           Summary: XPathFactory only searches system classloader for
                    service files
           Product: XmlCommons
           Version: 1.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: JAXP
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: brettf2002@yahoo.com


When using the JAXP XPath interfaces in a multi-classloader environment such as
an application server, the newInstance method on XPathFactory fails to find any
javax.xml.xpath.XPathFactory service files as described in the API documentation
if the service file was loaded in a classloader other than the system classloader.

The reason for this can be found in the javax.xml.xpath.SecuritySupport class in
the getResources method.  The method will always use the getSystemResource
method instead of the getResource method on the context classloader.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message