tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30533] - search dtd with system location in CATALINA_BASE/bin
Date Fri, 03 Sep 2004 08:18:19 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=30533>.
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=30533

search dtd with system location in CATALINA_BASE/bin





------- Additional Comments From dietmar.mueller@eurotours.at  2004-09-03 08:18 -------
The Link don't work but I found the information.
http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description

Ok. It could be possible that the setting from sax standard features solve the
problem. I think resolve-dtd-uris is a good candidate for this problem. But when
I set the feature I get follow exception:

org.xml.sax.SAXNotRecognizedException: Feature 'http://xml.org/sax/features/reso
lve-dtd-uris' is not recognized.
        at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source
)
        at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown
Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(Unknown Source
)
        at AllXMLParser.parse(AllXMLParser.java:55)
        at AllXMLParser.parse(AllXMLParser.java:130)
        at xml.processRequest(xml.java:47)
        at xml.doGet(xml.java:71)

The code is:

....
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setFeature("http://xml.org/sax/features/resolve-dtd-uris",false);
factory.setValidating(true);
parser = factory.newSAXParser();
....

Set other features works well.

I don't know the version from the underlying xerces impl. but in the doc they
speak from "SAX2 Standard Feature Flags".


regards Dietmar

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message