ResourceSetImpl.getResource exception [message #574083] |
Mon, 14 July 2003 14:48 |
Julia 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?
|
|
|
Powered by
FUDForum. Page generated in 0.03167 seconds