Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » problem with UML2.ecore file
problem with UML2.ecore file [message #477765] Mon, 29 September 2008 13:20 Go to next message
Eclipse UserFriend
Originally posted by: jihed.touzi.enstimac.fr

Hi to all;
I'm working into a transformation that starts from a stereotyped UML2
model to genrate another DSL.
It works fine when in the metamodel field in the configuration panel i
specify it using NS URI: uri:http://www.eclipse.org/uml2/2.0.0/UML or
uri:http://www.eclipse.org/uml2/2.1.0/UML

The problem is when i use the physical UML2.ecore file of the same
version it doesn't works.

I obtain at first warnings like that:
ATTENTION: metamodel contains several classifiers with same name: EAttribute
ATTENTION: metamodel contains several classifiers with same name:
ecore::EAttribute
ATTENTION: metamodel contains several classifiers with same name:
EAnnotation
ATTENTION: metamodel contains several classifiers with same name:
ecore::EAnnotation
ATTENTION: metamodel contains several classifiers with same name: EClass
ATTENTION: metamodel contains several classifiers with same name:
ecore::EClass


and errors like that :

GRAVE: message: ERROR: could not find operation
getAppliedStereotypes on UML2!Class having supertypes:
[UML2!BehavioredClassifier, UML2!EncapsulatedClassifier, OclType,
OclAny] (including Java operations)
and

GRAVE: message: ERROR: could not find operation not on
Sequence(OclAny) having supertypes: [Collection(OclAny)]

Normally the UML2 file and the NsURI option have to do the same
tranformation.

Some one can help me ??
Thank you much.

Jihed
Re: problem with UML2.ecore file [message #477766 is a reply to message #477765] Mon, 29 September 2008 13:55 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jihed,

There may be issues in the original "stereotyped UML2 model". Where
exactly is this model coming from?

What version of UML2 are you using?

- James.


"jihed touzi" <jihed.touzi@enstimac.fr> wrote in message
news:gbqknv$t7p$2@build.eclipse.org...
> Hi to all;
> I'm working into a transformation that starts from a stereotyped UML2
> model to genrate another DSL.
> It works fine when in the metamodel field in the configuration panel i
> specify it using NS URI: uri:http://www.eclipse.org/uml2/2.0.0/UML or
> uri:http://www.eclipse.org/uml2/2.1.0/UML
>
> The problem is when i use the physical UML2.ecore file of the same version
> it doesn't works.
>
> I obtain at first warnings like that:
> ATTENTION: metamodel contains several classifiers with same name:
> EAttribute
> ATTENTION: metamodel contains several classifiers with same name:
> ecore::EAttribute
> ATTENTION: metamodel contains several classifiers with same name:
> EAnnotation
> ATTENTION: metamodel contains several classifiers with same name:
> ecore::EAnnotation
> ATTENTION: metamodel contains several classifiers with same name: EClass
> ATTENTION: metamodel contains several classifiers with same name:
> ecore::EClass
>
>
> and errors like that :
>
> GRAVE: message: ERROR: could not find operation getAppliedStereotypes
> on UML2!Class having supertypes: [UML2!BehavioredClassifier,
> UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)
> and
>
> GRAVE: message: ERROR: could not find operation not on
> Sequence(OclAny) having supertypes: [Collection(OclAny)]
>
> Normally the UML2 file and the NsURI option have to do the same
> tranformation.
>
> Some one can help me ??
> Thank you much.
>
> Jihed
Re: problem with UML2.ecore file [message #477771 is a reply to message #477766] Wed, 01 October 2008 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jihed.touzi.enstimac.fr

Hi james
the uml model is obtained using an atl transformation. the UML2
metamodel (specified using NS URI)is used.

The version is 2.0.0.



James Bruck a écrit :
> Hi Jihed,
>
> There may be issues in the original "stereotyped UML2 model". Where
> exactly is this model coming from?
>
> What version of UML2 are you using?
>
> - James.
>
>
> "jihed touzi" <jihed.touzi@enstimac.fr> wrote in message
> news:gbqknv$t7p$2@build.eclipse.org...
>> Hi to all;
>> I'm working into a transformation that starts from a stereotyped UML2
>> model to genrate another DSL.
>> It works fine when in the metamodel field in the configuration panel i
>> specify it using NS URI: uri:http://www.eclipse.org/uml2/2.0.0/UML or
>> uri:http://www.eclipse.org/uml2/2.1.0/UML
>>
>> The problem is when i use the physical UML2.ecore file of the same version
>> it doesn't works.
>>
>> I obtain at first warnings like that:
>> ATTENTION: metamodel contains several classifiers with same name:
>> EAttribute
>> ATTENTION: metamodel contains several classifiers with same name:
>> ecore::EAttribute
>> ATTENTION: metamodel contains several classifiers with same name:
>> EAnnotation
>> ATTENTION: metamodel contains several classifiers with same name:
>> ecore::EAnnotation
>> ATTENTION: metamodel contains several classifiers with same name: EClass
>> ATTENTION: metamodel contains several classifiers with same name:
>> ecore::EClass
>>
>>
>> and errors like that :
>>
>> GRAVE: message: ERROR: could not find operation getAppliedStereotypes
>> on UML2!Class having supertypes: [UML2!BehavioredClassifier,
>> UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)
>> and
>>
>> GRAVE: message: ERROR: could not find operation not on
>> Sequence(OclAny) having supertypes: [Collection(OclAny)]
>>
>> Normally the UML2 file and the NsURI option have to do the same
>> tranformation.
>>
>> Some one can help me ??
>> Thank you much.
>>
>> Jihed
>
>
Re: problem with UML2.ecore file [message #477772 is a reply to message #477771] Wed, 01 October 2008 22:21 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jihed,

This doesn't sound like an issue with the opensource UML2 project or any of
its models. It seems to be an issue with the generated UML2.ecore file
that you mention.
There is an ecore version of the uml metamodel already provided by the
project in org.eclipse.uml2.uml\models\UML.ecore. You may want to compare
that with the UML2.ecore that you have produced.

- James.



"jihed touzi" <jihed.touzi@enstimac.fr> wrote in message
news:gbvmg6$u53$2@build.eclipse.org...
> Hi james
> the uml model is obtained using an atl transformation. the UML2 metamodel
> (specified using NS URI)is used.
>
> The version is 2.0.0.
>
>
>
> James Bruck a
Re: problem with UML2.ecore file [message #626964 is a reply to message #477765] Mon, 29 September 2008 13:55 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jihed,

There may be issues in the original "stereotyped UML2 model". Where
exactly is this model coming from?

What version of UML2 are you using?

- James.


"jihed touzi" <jihed.touzi@enstimac.fr> wrote in message
news:gbqknv$t7p$2@build.eclipse.org...
> Hi to all;
> I'm working into a transformation that starts from a stereotyped UML2
> model to genrate another DSL.
> It works fine when in the metamodel field in the configuration panel i
> specify it using NS URI: uri:http://www.eclipse.org/uml2/2.0.0/UML or
> uri:http://www.eclipse.org/uml2/2.1.0/UML
>
> The problem is when i use the physical UML2.ecore file of the same version
> it doesn't works.
>
> I obtain at first warnings like that:
> ATTENTION: metamodel contains several classifiers with same name:
> EAttribute
> ATTENTION: metamodel contains several classifiers with same name:
> ecore::EAttribute
> ATTENTION: metamodel contains several classifiers with same name:
> EAnnotation
> ATTENTION: metamodel contains several classifiers with same name:
> ecore::EAnnotation
> ATTENTION: metamodel contains several classifiers with same name: EClass
> ATTENTION: metamodel contains several classifiers with same name:
> ecore::EClass
>
>
> and errors like that :
>
> GRAVE: message: ERROR: could not find operation getAppliedStereotypes
> on UML2!Class having supertypes: [UML2!BehavioredClassifier,
> UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)
> and
>
> GRAVE: message: ERROR: could not find operation not on
> Sequence(OclAny) having supertypes: [Collection(OclAny)]
>
> Normally the UML2 file and the NsURI option have to do the same
> tranformation.
>
> Some one can help me ??
> Thank you much.
>
> Jihed
Re: problem with UML2.ecore file [message #626969 is a reply to message #477766] Wed, 01 October 2008 11:21 Go to previous message
Eclipse UserFriend
Originally posted by: jihed.touzi.enstimac.fr

Hi james
the uml model is obtained using an atl transformation. the UML2
metamodel (specified using NS URI)is used.

The version is 2.0.0.



James Bruck a écrit :
> Hi Jihed,
>
> There may be issues in the original "stereotyped UML2 model". Where
> exactly is this model coming from?
>
> What version of UML2 are you using?
>
> - James.
>
>
> "jihed touzi" <jihed.touzi@enstimac.fr> wrote in message
> news:gbqknv$t7p$2@build.eclipse.org...
>> Hi to all;
>> I'm working into a transformation that starts from a stereotyped UML2
>> model to genrate another DSL.
>> It works fine when in the metamodel field in the configuration panel i
>> specify it using NS URI: uri:http://www.eclipse.org/uml2/2.0.0/UML or
>> uri:http://www.eclipse.org/uml2/2.1.0/UML
>>
>> The problem is when i use the physical UML2.ecore file of the same version
>> it doesn't works.
>>
>> I obtain at first warnings like that:
>> ATTENTION: metamodel contains several classifiers with same name:
>> EAttribute
>> ATTENTION: metamodel contains several classifiers with same name:
>> ecore::EAttribute
>> ATTENTION: metamodel contains several classifiers with same name:
>> EAnnotation
>> ATTENTION: metamodel contains several classifiers with same name:
>> ecore::EAnnotation
>> ATTENTION: metamodel contains several classifiers with same name: EClass
>> ATTENTION: metamodel contains several classifiers with same name:
>> ecore::EClass
>>
>>
>> and errors like that :
>>
>> GRAVE: message: ERROR: could not find operation getAppliedStereotypes
>> on UML2!Class having supertypes: [UML2!BehavioredClassifier,
>> UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)
>> and
>>
>> GRAVE: message: ERROR: could not find operation not on
>> Sequence(OclAny) having supertypes: [Collection(OclAny)]
>>
>> Normally the UML2 file and the NsURI option have to do the same
>> tranformation.
>>
>> Some one can help me ??
>> Thank you much.
>>
>> Jihed
>
>
Re: problem with UML2.ecore file [message #626970 is a reply to message #477771] Wed, 01 October 2008 22:21 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jihed,

This doesn't sound like an issue with the opensource UML2 project or any of
its models. It seems to be an issue with the generated UML2.ecore file
that you mention.
There is an ecore version of the uml metamodel already provided by the
project in org.eclipse.uml2.uml\models\UML.ecore. You may want to compare
that with the UML2.ecore that you have produced.

- James.



"jihed touzi" <jihed.touzi@enstimac.fr> wrote in message
news:gbvmg6$u53$2@build.eclipse.org...
> Hi james
> the uml model is obtained using an atl transformation. the UML2 metamodel
> (specified using NS URI)is used.
>
> The version is 2.0.0.
>
>
>
> James Bruck a
Previous Topic:eclipse 3.5M2 versus uml2 tools?
Next Topic:eclipse 3.5M2 versus uml2 tools?
Goto Forum:
  


Current Time: Mon Mar 30 11:34:06 GMT 2020

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

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

Back to the top