Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Failed to resolve metamodel("Failed to resolve Metamodel" Error in .qvto file)
[QVTo] Failed to resolve metamodel [message #498753] Wed, 18 November 2009 14:37 Go to next message
C. Kopf is currently offline C. KopfFriend
Messages: 37
Registered: November 2009
Member
Hello everybody.

I've got a challenge in writing my own qvto-example.

first line declares the metamodel for my output models:

modeltype XPAR uses 'http://xpar.org/3.1.2/xpar312';


here an "Failed to resolve Metamodel" error is shown.

I have taken a look with the Metamodel Explorer View and I found the model, inside of a ecore file at the workspace location. the URI used above is the same as shown in bracket here.
What else has to be done?
Did I already make something wrong?

Sorry for this issue, I am quite new to the whole M2M-Transformation stuff. Embarrassed And thanks alot for your help! Smile

chris
Re: [QVTo] Failed to resolve metamodel [message #498800 is a reply to message #498753] Wed, 18 November 2009 16:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Chris,

See
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg03903.html

Regards,
/Radek


On Wed, 18 Nov 2009 15:37:46 +0100, C. Kopf
<christian.kopf@fokus.fraunhofer.de> wrote:

> Hello everybody.
>
> I've got a challenge in writing my own qvto-example.
>
> first line declares the metamodel for my output models:
>
> modeltype XPAR uses 'http://xpar.org/3.1.2/xpar312';
>
> here an "Failed to resolve Metamodel" error is shown.
>
> I have taken a look with the Metamodel Explorer View and I found the
> model, inside of a ecore file at the workspace location. the URI used
> above is the same as shown in bracket here.
> What else has to be done?
> Did I already make something wrong?
>
> Sorry for this issue, I am quite new to the whole M2M-Transformation
> stuff. :blush: And thanks alot for your help! :) chris
icon6.gif  Re: [QVTo] Failed to resolve metamodel [message #498974 is a reply to message #498753] Thu, 19 November 2009 11:59 Go to previous message
C. Kopf is currently offline C. KopfFriend
Messages: 37
Registered: November 2009
Member
Thanks a lot Radek,

it works fine.

For those having the same problem, here the how-to in short:
rightclick on your qvt-project in package-explorer -> properties ->QVT Settings -> Metamodel Mappings -> Add (source model uri := nsURI; target model uri := ecore-file location uri)

than refresh the project.

The error mentioned above should not be there anymore. For me it worked fine. Thumbs Up

Sorry again for that "newby" question and thanks alot for your instant support. perfect!


Chris
Previous Topic:[ATL] Transformation termination and confluence
Next Topic:[ATL] ATL-File to Ecore-Model
Goto Forum:
  


Current Time: Wed Apr 24 16:06:21 GMT 2024

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

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

Back to the top