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

           Summary: XMLConfiguration contructor not loading the resource
           Product: Commons
           Version: 1.2 Final
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configuration
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Problem:
XMLConfiguration(URL url) constructor does not load the the resource specified
in argument. 

Solution:
XMLConfiguration(URL url) constructor must call load(url) method instead of
load() method.


Description:
In an web application,
If the resource mentioned is in somex.jar file and the ConfigurationManager
which loads the resource is in another.jar file. Then using XMLConfiguration(URL
url) constructor, it gives exception 'ConfigurationException'. 

But if we do as follows.
(new XMLConfiguration()).load(url), then it loads the resource properly.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to