Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » XSD » Error when parsing XML Schema with extn caps XSD(Error when parsing XML Schema with extn caps XSD)
Error when parsing XML Schema with extn caps XSD [message #486626] Fri, 18 September 2009 13:10 Go to next message
Keshavrao  is currently offline Keshavrao Friend
Messages: 34
Registered: July 2009
Hello All,

I am getting the below mentioned exception when i try to parse an XML Schema file using the below line of code.
Same works when i just rename the file extension to "xsd" from "XSD"

resourceSet.getResource(URI.createURI(location), true);

the location of the URI here is an absolute path like "file:/C:/Work/TestWorkspace/......./Sample.XSD"

Thanks and regards,
Keshav Veerapaneni.

Caused by: org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'schema' not found.
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.validateCreateObje ctFromFactory(
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.validateCreateObje ctFromFactory(
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa
at .startElement(
at startElement(
at cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:1359)
at pl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl. java:1316)
at cannerImpl$
at pl$
at cannerImpl.scanDocument( 510)
at n.parse(
at n.parse(
at .parse(
at$JAXPSA XParser.parse(
at javax.xml.parsers.SAXParser.parse(
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(

[Updated on: Tue, 22 September 2009 05:05]

Report message to a moderator

Re: Error when parsing XML Schema with extn caps XSD [message #504513 is a reply to message #486626] Mon, 21 December 2009 06:38 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 424
Registered: July 2009
Senior Member
Hey Keshav,

Seems to me the problem with your XSD.
Could you paster your xsd here?.


Next Topic:XSD Schema and XSD import
Goto Forum:

Current Time: Tue Dec 01 05:52:14 GMT 2015

Powered by FUDForum. Page generated in 0.03538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software