DO NOT REPLY [Bug 41931] New: - XPathFactory only searches system classloader for service files

View: New views
3 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 41931] New: - XPathFactory only searches system classloader for service files

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
        ReportedBy: brettf2002@...


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.

DO NOT REPLY [Bug 41931] - XPathFactory only searches system classloader for service files

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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





------- Additional Comments From brettf2002@...  2007-03-22 11:49 -------
Created an attachment (id=19774)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19774&action=view)
Proposed patch to search context classloader when available


--
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.

DO NOT REPLY [Bug 41931] - XPathFactory only searches system classloader for service files

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


mrglavas@... changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From mrglavas@...  2007-03-25 13:05 -------
The same bugs were also in javax.xml.validation.SecuritySupport. Both are fixed
in SVN now. Thanks.

--
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.
LightInTheBox - Buy quality products at wholesale price!