Hi all,
 
I'm trying to run MMBase in Oracle 9iAS and I get a MalformedURLException in the org.mmbase.util.XMLBasicReader class.
This is because the oracle XML parser is not as advanced as teh one on mmbase.
But the code in Oracle cannot be replaced, since it is sealed.
To fix this bug I changed the following code in the XMLBasicReader constructor:
 
    if(useJavaxXML) {
        xmlFilePath=path; // save for debug
        document = getDocumentBuilder().parse(path);
    } else {
 
I changed it to:
 
    if(useJavaxXML) {
        xmlFilePath="file:///"+path; // save for debug
        document = getDocumentBuilder().parse(xmlFilePath);
    } else {
 
I looks to me that this should be not too much of a problem. I tested this with Tomcat and it works fine (it worked fine with tomcat before too). I also tested it with Oracle application server and it works also.
Can someone see some problems with this fix? If not, can someone make this change in the sources.
 
Thanx,
Gerard van de Looi

Reply via email to