[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [QVT] qvt lanuch config: transformation IN parameter: invalid source

Radek Dvorak wrote:

Hi David,

Do you intend to you use dynamic model instance or generated java model instance in
your transformation?
In case an ecore file from a workspace is to be used to compile and run a transf,
it should be explicitly registered. See 'QVT Settings/Metamodel Mapping' property page
on your QVT project.

Looks like your transf might compile against the ecore file metamodel while your model
instance refers to the generated one. Though they may seem logically the same metamodels,
they are considered distinct metamodels in this case.

Regards,
/Radek


On Tue, 03 Jun 2008 16:55:06 +0200, David <David-392.Li@xxxxxxxxxxxxxxxxx> wrote:

Hi,
Again :-), I have some questions Re. QVT.

We use Eclipse Version: 3.3.0 Build id: I20080207-1530 to do the test for QVT.

1. We create a QVT project.
2. Put the source meta model modx.ecore, and model test.modx inside the porject.
3. Put the target metat model intermediate.ecore inside the project.
4. Create the modex2inter.qvto
5. Create the coresponding launch config. When configing the transformation IN paramter through selecting the test.modx, but the panel hang for a quit while, and then complains that "Invalid source URI 'platform:/resource/qvtPrototype/models/test.modx' for parameter 'modx'"
And the Model URI is "platform:/resource/qvtPrototype/models/test.modx"



Thanks for any suggestions!

David




Hi Radek,

I solved this problem by doing following:
Generate the ecore mete model code, and export the model project as plugin jar, and put the jar under Eclipse plugin folder. Then we can define the IN parameter without problem.


So I guess that QVT needs Ecore meta model code in order to run?
can it automatically generate code from meta model if this is the case? Since the project contains the corresponding metat models.


We tried to define the mapping between namespace and the meta model through 'QVT Settings/Metamodel Mappi. But seems didn't work for us.

I am not sure what it means "Do you intend to you use dynamic model instance or generated java model instance in your transformation"? Can I understand that it is what we did as describe above through generating meta model code?

Thanks very much,

David