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
Member
I try to load the scheme from my xsd-file which located on hard disk.
I write:

ResourceSet resourceSet = new ResourceSetImpl();

XSDResourceImpl xsdSchemaResource =
(XSDResourceImpl)resourceSet.getResource
(URI.createFileURI("C://XSD//call.xsd"), true);
or
(URI.createURI("file:///C://XSD//call.xsd"), true);
or
(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
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:282)
at xml_generator.parse_xsd$1.getResource(parse_xsd.java:123)
at xml_generator.parse_xsd.traceLoading(parse_xsd.java:149).."

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: Mon Dec 22 14:17:19 GMT 2014

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

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