Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » How does eclipse resolve model URI's?
icon5.gif  How does eclipse resolve model URI's? [message #654823] Thu, 17 February 2011 10:11 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
Hi,

I'm having problems understanding how eclipse resolves model uri's.

Case: I have created an ecore model in project A. Then I create a dynamic instance of an entity and store the resulting (instance) model in a folder of project B. I can edit it using the sample reflective editor. However, if I close eclipse and restart it, any attempt to open the instance model using the samlple reflective editor results in error messages stating:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://asml_platform.fc25.asml.com/0.1.0' not found.

However, when I use the metamodel explorer, it shows that the metamodel (with the proper uri) is known in the workspace.

The instance model, stored as an xmi file, contains a schema location attribute referring to the meta model (using its uri).

Any hints,

Wilbert
Re: How does eclipse resolve model URI's? [message #655633 is a reply to message #654823] Tue, 22 February 2011 03:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Wilbert,

Comments below.

Wilbert Alberts wrote:
> Hi,
>
> I'm having problems understanding how eclipse resolves model uri's.
>
> Case: I have created an ecore model in project A. Then I create a
> dynamic instance of an entity and store the resulting (instance) model
> in a folder of project B. I can edit it using the sample reflective
> editor. However, if I close eclipse and restart it, any attempt to
> open the instance model using the samlple reflective editor results in
> error messages stating:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://asml_platform.fc25.asml.com/0.1.0' not found.
> However, when I use the metamodel explorer, it shows that the
> metamodel (with the proper uri) is known in the workspace.
I'm not sure which project provides a metamodel explorer.
>
> The instance model, stored as an xmi file, contains a schema location
> attribute referring to the meta model (using its uri).
I would have expected it to use the physical location, i.e., a
platform:/resource URI. That's what the EMF Core framework would do.
Maybe you're using a wizard provided by some other project, in which
case it's best to ask on that project's specific newsgroup...
>
> Any hints,
>
> Wilbert
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How does eclipse resolve model URI's? [message #715028 is a reply to message #654823] Fri, 12 August 2011 07:17 Go to previous message
djozef87 is currently offline djozef87Friend
Messages: 4
Registered: August 2011
Junior Member
Hi Wilbert,

Did you solve this problem ?
I have the same error message and i don't find a solution.

Thanks in advance,
Youssef
Previous Topic:Visual model of struts-config.xml
Next Topic:Use attributes in model validation messages
Goto Forum:
  


Current Time: Thu Apr 25 05:52:44 GMT 2024

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

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

Back to the top