|
Re: [ATL] metamodel element uml::Class not found [message #81314 is a reply to message #81262] |
Thu, 15 May 2008 12:57   |
William Piers Messages: 297 Registered: July 2009 |
Senior Member |
|
|
Hello,
Deepak a écrit :
> Hello,
>
> I am ATL newbie and interested in profile transformation.
>
> So I am playing with the ATL example "UML Class Diagram to UML Profile".
>
> The transformation works fine when I set the metamodels path to
> "uri:http://www.eclipse.org/uml2/2.1.0/UML".
>
> However, setting the path of the UML metamodel to the local directory
> (see the zip file containing no.jpg), the ATL compiler gives the
> following error message.
>
> The metamodel element uml::Class exists in the file uml21.uml (in
> attachment available).
The problem is that you're trying tu use an UML model as a metamodel. If
you want to use a local file for the UML21 metamodel, you must take the
..ecore one, which is available in org.eclipse.uml.uml2 plugins.
Best regards,
William
>
> No matter which handler I choose (EMF or UML), the error message still
> occurs.
>
>
> INFO: /ProfileGen/Transformations/UMLCD2UMLProfile.atl
> SCHWERWIEGEND: ****** BEGIN Stack Trace
> SCHWERWIEGEND: message: cannot find metamodel element uml::Class in
> model UML
> SCHWERWIEGEND: A.main() : ??#22 null
> SCHWERWIEGEND: local variables = {self=UMLCD2UMLProfile : ASMModule}
> SCHWERWIEGEND: local stack = []
> SCHWERWIEGEND: A.__matcher__() : ??#1 null
> SCHWERWIEGEND: local variables = {self=UMLCD2UMLProfile : ASMModule}
> SCHWERWIEGEND: local stack = []
> SCHWERWIEGEND: A.__matchClass() : ??#2 null
> SCHWERWIEGEND: local variables = {self=UMLCD2UMLProfile : ASMModule}
> SCHWERWIEGEND: local stack = []
> SCHWERWIEGEND: ****** END Stack Trace
> INFO: Execution terminated due to error (see launch configuration to
> allow continuation after errors).
> SCHWERWIEGEND: cannot find metamodel element uml::Class in model UML
> java.lang.RuntimeException: cannot find metamodel element uml::Class in
> model UML
>
> Thanks in advance for any help !
>
>
> Cheers,
>
> Deepak
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02329 seconds