DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26028>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26028 setEntityResolver doesn't set resolver in Entity Manager Summary: setEntityResolver doesn't set resolver in Entity Manager Product: Xerces2-J Version: 2.2.1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] If I create an XMLReader in a simple scenario with a contenthandler, it respects the entity resolver that I set with setEntityResolver. Take that same reader and put it at the head of a SAX filter chain: presto! the reader ignores the custom entity resolver and tries to find entities in the default manner...not good. All I want to do is configure the Entity Manager (I'm using JAXP) such that it will know what resolver to use. I am making an assumption here that this is a bug -- that when a reader is in a filter chain context, that a call to setEntityResolver does not end up setting the resolver property for the entity manager. Here's the stack trace I get...the reason the DTD is not found is that it is not in the directory where the program is run...the custom resolver is supposed to tell the parser where the DTD is... java.io.FileNotFoundException: X:\ce_xml\xeldm\infra\formatter\Courtcase-V2- norm.dtd (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:103) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect (FileURLConnection.java:69) at sun.net.www.protocol.file.FileURLConnection.getInputStream (FileURLConnection.java:156) at java.net.URL.openStream(URL.java:960) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at com.lxnx.fab.ce.xeldm.infra.FormatterSAXFilterMain.main (FormatterSAXFilterMain.java:221) Exception in thread "main" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
