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=17550>. 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=17550 The property of http://apache.org/xml/properties/schema/external-schemaLocation has some problem in 2.3.0 Summary: The property of http://apache.org/xml/properties/schema/external- schemaLocation has some problem in 2.3.0 Product: Xerces2-J Version: 2.0.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, I have a java servlet application to store xml file into database. We use sax parser(implemented by xerces) to parse the xml documents. It works well under xerces 2.2.1 Today I update my xercesImpl.jar to version 2.3.0, I got an error when I tried to validate a xml document(Actually, the document is valide): java.lang.ClassCastException: org.apache.xerces.impl.dv.xs.ListDV$ListData at org.apache.xerces.impl.xs.XMLSchemaLoader.processExternalHints(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.reset(Unknown Source) at org.apache.xerces.parsers.BasicParserConfiguration.reset(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.reset(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.ecoinformatics.eml.SAXValidate.runTest(SAXValidate.java:154) at org.ecoinformatics.eml.EMLParserServlet.parse(EMLParserServlet.java:296) at org.ecoinformatics.eml.EMLParserServlet.handleGetOrPost(EMLParserServlet.java:229) at org.ecoinformatics.eml.EMLParserServlet.doPost(EMLParserServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) I found the problem was caused by the setting external-schemaLocation property. If I got rid of this lines, everything works fine. Is something different on setting this property in 2.2.1 and 2.3.0? I didn't get any clue from docs. Here is my code: public final String EXTERNALSCHEMALOCATIONPROPERTY = "http://apache.org/xml/properties/schema/external-schemaLocation"; public static final String EXTERNALSCHEMALOCATION = "eml://ecoinformatics.org/eml-2.0.0 http://dev.nceas.ucsb.edu/tao/schema/eml.xsd"; parser.setProperty(EXTERNALSCHEMALOCATIONPROPERTY, EXTERNALSCHEMALOCATION); I thought this is a bug in xerces2.3.0 and entered it --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
