Michael Ludwig <mil...@gmx.de> wrote on 02/23/2010 03:35:22 PM: > hamid.farhadi.nsc schrieb am 23.02.2010 um 15:24:48 (+0330): > > C:\Documents and Settings\hamit ina>java edu.ncsu.tiaa.gui.GUI > > File not found! > > Processing the knowledge base: Put hyper-alert types into the database > > org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema > > document 'newKnowledgeBase.xsd', because 1) could not find the > > document; 2) the document could not be read; 3) the root element of the > > document is not <xsd:schema>. > > You schema is fine, so you can exclude (3). > > You can exclude (2) by writing a simple program reading the file using > an absolute path and having it run under the same process. > > My bet is (1) is your problem.
There would be an IOException that Xerces is catching before emitting this warning message. Xerces-J 2.9.1 and earlier swallows it. With the current development stream you can retrieve the root cause for this error (i.e. the IOException) from the SAXParseException [1]. > > another point is that the file is in linux format and i'm reading it > > in windows. i have also converted it into windows format and i got the > > same error. > > Should be irrelevant. > > -- > Michael Ludwig > > --------------------------------------------------------------------- > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org [1] http://issues.apache.org/jira/browse/XERCESJ-1124 Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org