You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Eva Flora <ev...@bluemartini.com> on 2002/08/07 00:48:53 UTC
org.xml.sax.SAXException: Error:General Schema Error
I am getting the error. Any clues/workarounds?
Thanks in advance,
Eva
Attached are:
Validate.java
BMDefaultHandler.java
validate.xml
validate.xsd.
org.xml.sax.SAXException: Error:General Schema Error: Grammar with uri:
http://sch
emas.xmlsoap.org/soap/envelope/ , can not be found; schema namespace may
be wrong:
Xerces supports schemas from the "http://www.w3.org/2001/XMLSchema"
namespace or
the instance document's namespace may not match the targetNamespace of
the schema
.
at
com.bluemartini.xml.BMDefaultHandler.error(BMDefaultHandler.java:32)
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249)
at
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLEr
ror(XMLValidator.java:1821)
at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttr
ibutes(XMLValidator.java:3232)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVa
lidator.java:1229)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentS
canner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispat
ch(XMLDocumentScanner.java:949)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
va:195)
at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:191)
at com.bluemartini.test.Validate.main(Validate.java:32)