Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351114

Summary: I apologize this shouldn't be here please remove this posting
Product: [Modeling] EMF Reporter: Benson <eclipse.benson>
Component: XML/XMIAssignee: Ed Merks <Ed.Merks>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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