Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » ResourceSetImpl.getResource exception
ResourceSetImpl.getResource exception [message #574083] Mon, 14 July 2003 14:48
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
I try to load the scheme from my xsd-file which located on hard disk.
I write:

ResourceSet resourceSet = new ResourceSetImpl();

XSDResourceImpl xsdSchemaResource =
(URI.createFileURI("C://XSD//call.xsd"), true);
(URI.createURI("file:///C://XSD//call.xsd"), true);
(URI.createURI("file:///C:/XSD/call.xsd"), true);

In any case I get the exception:
java.lang.RuntimeException: Cannot create a resource for 'call1.xsd'; a
registered resource factory is needed
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(
at xml_generator.parse_xsd$1.getResource(
at xml_generator.parse_xsd.traceLoading("

Could you help me, please, what is wrong.
How can I load the scheme into the memory correctly?
Previous Topic:Re: getAnnotaion().getUserInfomation() returns an org.w3c.dom.Node withemty nodeValue
Next Topic:Loading Schema from JAR
Goto Forum:

Current Time: Wed Aug 12 21:51:13 GMT 2020

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

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

Back to the top