W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

Re: Schema Parsing Error

From: George Cristian Bina <george@sync.ro>
Date: Thu, 24 Jun 2004 10:04:25 +0300
Message-ID: <40DA7CF9.8040204@sync.ro>
To: Tony Fares <Tony.Fares@Oracle.com>
Cc: xmlschema-dev@w3.org

Hi Tony,

 > "org.xml.sax.SAXParseException: General Schema Error: Grammar with 
uri > 2: http://www.imsglobal.org/xsd/imscp_rootv1p1p2 , can not found.

That should mean that the parser cannot read the schema 
imscp_rootv1p1p2.xsd associated with your 
http://www.imsglobal.org/xsd/imscp_rootv1p1p2 namespace. From the stack 
trace it seems that you are using the really old Xerces J parser. AFAIK 
that is not maintained anymore, you should switch to Xerces 2 [1].

[1] http://xml.apache.org/xerces2-j/

Hope that helps,
George
-----------------------------------------------
George Cristian Bina
<oXygen/> XML Editor & XSLT Editor/Debugger
http://www.oxygenxml.com

Tony Fares wrote:
> Hi,
> 
> I am getting the following error, and I appreciate if someone could help
> 
> "org.xml.sax.SAXParseException: General Schema Error: Grammar with uri 2: http://www.imsglobal.org/xsd/imscp_rootv1p1p2 , can not found.
>         at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060)
>         at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1446)
>         at org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:2736)
>         at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:924)
>         at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1858)
>         at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1001)
>         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> "
> 
> 
> My instance file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <manifest identifier="MANIFEST1" version="1.1" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:imsmd="http://www.imsglobal.org/xsd/imsmd_v1p2" 
> xmlns="http://www.imsglobal.org/xsd/imscp_rootv1p1p2"
> 
> xmlns:myxrmlext="d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1" 
> xsi:schemaLocation="http://www.imsglobal.org/xsd/imscp_rootv1p1p2 imscp_rootv1p1p2.xsd
>     http://www.imsglobal.org/xsd/imsmd_v1p2 imsmd_v1p2p2.xsd 
> d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1 My_XrMLDRMschema_v1.xsd">
> 
> 
> 
> My Schema file:
> 
> ?xml version="1.0"?>
> <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by hanan (Personal) -->
> <!-- <?xml version="1.0" encoding="UTF-8" ?> -->
> 
> <xsd:schema 
> xmlns:myext="d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1"
> targetNamespace="d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1"  
> xmlns:drm="http://www.xrml.org/schema/2001/11/xrml2cx" xmlns:xrml2="http://www.xrml.org/schema/2001/11/xrml2core" xmlns:xe="http://www.xrml.org/schema/2001/11/xrml2sx"   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> 	<xsd:import namespace="http://www.xrml.org/schema/2001/11/xrml2cx" schemaLocation="xrml2cx.xsd"/>
> 
> 
Received on Thursday, 24 June 2004 03:06:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT