Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Unable to run org.eclipse.m2m.qvt.oml.econ2009.tutorial(QVTo and EMF)
Unable to run org.eclipse.m2m.qvt.oml.econ2009.tutorial [message #506742] Sat, 09 January 2010 11:21 Go to next message
Simon Payne is currently offline Simon PayneFriend
Messages: 2
Registered: January 2010
Junior Member
I am new to EMF/M2M/QVTo, and checked out the org.eclipse.m2m.qvt.oml.econ2009.tutorial from CVS to try to familiarise myself with it.

I downloaded Eclipse Version: 3.4.2 which was the bundle named eclipse-modeling-ganymede-SR2-incubation-win32 with all the EMF tools. I am working on Windows XP Pro SP2.

However, I found straight away that the tutorial example fails to compile. I have an error in Ecore2UML.qvto on the second line

modeltype UML "strict" uses uml('http://www.eclipse.org/uml2/3.0.0/UML');

the error reads

Failed to resolve metamodel 'http://www.eclipse.org/uml2/3.0.0/UML'

I also get an error trying to run the transformation launcher Ecore2UML.launch:

Error: Invalid transformation URI 'platform:/resource/qvto.ecore2uml/transforms/Ecore2UML.qvto '
Invalid transformation URI 'platform:/resource/qvto.ecore2uml/transforms/Ecore2UML.qvto '


NB I don't have a problem with the first line of the transformation file which reads

modeltype ECORE "strict" uses ecore('http://www.eclipse.org/emf/2002/Ecore');

That one is recognised OK.

Have you any guidance, clues, hints etc to help me out?

UPDATE: I found that I can run the transformation when I change the problematic line to read

modeltype UML "strict" uses uml('http://www.eclipse.org/uml2/2.1.0/UML');

But there are still numerous compilation errors, and the transformation fails as before.

e.g

if(result.oclIsKindOf(Model)) then
result.packagedElement += object Package {
name := "importedTypes";
packagedElement += (umlModel.objects()[Type])[_package = null];
}
endif;


gives the error

Multiple markers at this line
- Cannot assign to this expression since it is not an lvalue
- missing "qvtErrorToken" to complete scope


thanks

Simon



[Updated on: Sat, 09 January 2010 11:45]

Report message to a moderator

Re: Unable to run org.eclipse.m2m.qvt.oml.econ2009.tutorial [message #506782 is a reply to message #506742] Sat, 09 January 2010 18:22 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Simon ,

QVTo tutorial from 'oem.qvt.oml.econ2009.tutorial' plug-in requires
Eclipse 3.5.
You can use Eclipse Galileo modeling package
( http://www.eclipse.org/downloads/download.php?file=/technolo gy/epp/downloads/release/galileo/SR1/eclipse-modeling-galile o-SR1-incubation-win32.zip).

Handy way for using that tutorial:
- check out tutorial plug-in from CVS to workspace
- launch new Eclipse instance
- call "New Other.." (Ctrl+N) wizard, examples for "QVT Operationl
EclipseCon2009 Tutorial" located in "QVT Operational Tutorials" folder

Regards,
Sergey.


Simon Payne wrote:
> I am new to EMF/M2M/QVTo, and checked out the
> org.eclipse.m2m.qvt.oml.econ2009.tutorial from CVS to try to familiarise
> myself with it.
>
> I downloaded Eclipse Version: 3.4.2 which was the bundle named
> eclipse-modeling-ganymede-SR2-incubation-win32 with all the EMF tools. I
> am working on Windows XP Pro SP2.
> However, I found straight away that the tutorial example fails to
> compile. I have an error in Ecore2UML.qvto on the second line
>
> modeltype UML "strict" uses uml('http://www.eclipse.org/uml2/3.0.0/UML');
>
> the error reads
>
> Failed to resolve metamodel 'http://www.eclipse.org/uml2/3.0.0/UML'
>
> I also get an error trying to run the transformation launcher
> Ecore2UML.launch:
>
> Error: Invalid transformation URI
> 'platform:/resource/qvto.ecore2uml/transforms/Ecore2UML.qvto '
> Invalid transformation URI
> 'platform:/resource/qvto.ecore2uml/transforms/Ecore2UML.qvto '
>
> NB I don't have a problem with the first line of the transformation file
> which reads
>
> modeltype ECORE "strict" uses
> ecore('http://www.eclipse.org/emf/2002/Ecore');
>
> That one is recognised OK.
>
> Have you any guidance, clues, hints etc to help me out?
>
> thanks
>
> Simon
>
>
>
>
Re: Unable to run org.eclipse.m2m.qvt.oml.econ2009.tutorial [message #513307 is a reply to message #506782] Tue, 09 February 2010 17:46 Go to previous message
Simon Payne is currently offline Simon PayneFriend
Messages: 2
Registered: January 2010
Junior Member
Thanks Sergey, that works now Smile

Simon
Previous Topic:magicdraw models for eclipse "how could eclipse read them"
Next Topic:[QVTO] trace file
Goto Forum:
  


Current Time: Fri Apr 19 23:37:18 GMT 2024

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

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

Back to the top