Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351114 - I apologize this shouldn't be here please remove this posting
Summary: I apologize this shouldn't be here please remove this posting
Status: CLOSED INVALID
Alias: None
Product: EMF
Classification: Modeling
Component: XML/XMI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 15:21 EDT by Benson CLA
Modified: 2011-07-04 15:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benson CLA 2011-07-04 15:21:15 EDT
Build Identifier: 20090619-0625

The following code provides me with the following error,
"Package with uri 'http://schema.omg.org/spec/UML/2.1.1' not found.".
I was hoping someone could possibly explain to me what is happening.  Within the contents of the project.xmi file it contains that uri and this file was exported from Rhapsody.  This .xmi file is a model diagram.  I found out that EMF allows an interpretation of this model as a UML and in turn I was hoping I could traverse that UML interpretation rather than the .xmi text.  My ultimate goal is to recreate that Rhapsody model in Eclipse.

                String pathToXMI = "C:\\project.xmi";
	    	File XMIFile = new File(pathToXMI);
	 
		try {

			resource.load(new FileInputStream(XMIFile), Collections.EMPTY_MAP);

		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

Reproducible: Always