[Mofscript] The context http://www.eclipse.org/uml2/2.0.0/UML is not found ... [message #378847] |
Sun, 12 August 2007 13:02  |
Eclipse User |
|
|
|
Hello everybody,
I would like to run Mofscript files from Java. I have no problem if I
execute the main Mofscript transformation (it imports other m2t files) with
the Mofscript interface but if I try to execute it from my java code I get
the errors:
Parsing result: 33 errors
: Error: MTTParseError: Illegal/unknown context: uml, line: 0, column: 0
.....
: Error: MTTParseError: Cannot find import: guardas.m2t, line: 7, column: 7
......
I think that it does not find neither the context
http://www.eclipse.org/uml2/2.0.0/UML nor the imported m2t files. I am also
using the sentence parserUtil.setCompilePath(templatesDir); in my java file.
I am using Mofscript 1.2.4
Any idea?
Thank you very much in advance.
Bea
|
|
|
Re: [Mofscript] The context http://www.eclipse.org/uml2/2.0.0/UML is not found ... [message #378868 is a reply to message #378847] |
Fri, 17 August 2007 02:32   |
Eclipse User |
|
|
|
Hi again,
My configuration is Eclipse 3.3 and MOFScript 1.2.4 and perhaps the problem
is that configuration. Although I think that it is strange since if I run
the trnansformations directly, using MOFScript without using any Java file,
it works perfectly.
I also load explicity the UML metamodel in my java code adding;
ParserUtil parserUtil = new ParserUtil();
ExecutionManager execMgr = ExecutionManager.getExecutionManager();
execMgr.lookupAndAddSourceMetaModel("uml","http://www.eclipse.org/uml2/2.0.0/UML");
but It seems that that code does not anything. If I change the metamodel to
the Ecore metamodel it works, I mean, the metamodel is found.
Could anybody help me? Does anybody have try to execute MOFScript
transformations by using java files? What configuration are you using?
Thank you very much in advance.
Bea
"bea" <beaperez@unizar.es> wrote in message
news:f9naul$tat$1@build.eclipse.org...
> Hello everybody,
> I would like to run Mofscript files from Java. I have no problem if I
> execute the main Mofscript transformation (it imports other m2t files)
> with the Mofscript interface but if I try to execute it from my java code
> I get the errors:
>
> Parsing result: 33 errors
>
> : Error: MTTParseError: Illegal/unknown context: uml, line: 0, column: 0
>
> ....
>
> : Error: MTTParseError: Cannot find import: guardas.m2t, line: 7, column:
> 7
>
> .....
>
> I think that it does not find neither the context
> http://www.eclipse.org/uml2/2.0.0/UML nor the imported m2t files. I am
> also using the sentence parserUtil.setCompilePath(templatesDir); in my
> java file. I am using Mofscript 1.2.4
>
> Any idea?
>
> Thank you very much in advance.
>
> Bea
>
>
|
|
|
Re: [Mofscript] The context http://www.eclipse.org/uml2/2.0.0/UML is not found ... [message #378870 is a reply to message #378868] |
Fri, 17 August 2007 06:03   |
Eclipse User |
|
|
|
And what about the following context :
http://www.eclipse.org/uml2/2.1.0/UML ? Does it solve your problem ?
Bea a écrit :
> Hi again,
> My configuration is Eclipse 3.3 and MOFScript 1.2.4 and perhaps the problem
> is that configuration. Although I think that it is strange since if I run
> the trnansformations directly, using MOFScript without using any Java file,
> it works perfectly.
> I also load explicity the UML metamodel in my java code adding;
> ParserUtil parserUtil = new ParserUtil();
> ExecutionManager execMgr = ExecutionManager.getExecutionManager();
> execMgr.lookupAndAddSourceMetaModel("uml","http://www.eclipse.org/uml2/2.0.0/UML");
>
>
> but It seems that that code does not anything. If I change the metamodel to
> the Ecore metamodel it works, I mean, the metamodel is found.
> Could anybody help me? Does anybody have try to execute MOFScript
> transformations by using java files? What configuration are you using?
>
>
> Thank you very much in advance.
> Bea
>
>
>
> "bea" <beaperez@unizar.es> wrote in message
> news:f9naul$tat$1@build.eclipse.org...
>> Hello everybody,
>> I would like to run Mofscript files from Java. I have no problem if I
>> execute the main Mofscript transformation (it imports other m2t files)
>> with the Mofscript interface but if I try to execute it from my java code
>> I get the errors:
>>
>> Parsing result: 33 errors
>>
>> : Error: MTTParseError: Illegal/unknown context: uml, line: 0, column: 0
>>
>> ....
>>
>> : Error: MTTParseError: Cannot find import: guardas.m2t, line: 7, column:
>> 7
>>
>> .....
>>
>> I think that it does not find neither the context
>> http://www.eclipse.org/uml2/2.0.0/UML nor the imported m2t files. I am
>> also using the sentence parserUtil.setCompilePath(templatesDir); in my
>> java file. I am using Mofscript 1.2.4
>>
>> Any idea?
>>
>> Thank you very much in advance.
>>
>> Bea
>>
>>
>
>
>
|
|
|
|
|
Re: [Mofscript] The context http://www.eclipse.org/uml2/2.0.0/UML is not found ... [message #606590 is a reply to message #378847] |
Fri, 17 August 2007 02:32  |
Eclipse User |
|
|
|
Hi again,
My configuration is Eclipse 3.3 and MOFScript 1.2.4 and perhaps the problem
is that configuration. Although I think that it is strange since if I run
the trnansformations directly, using MOFScript without using any Java file,
it works perfectly.
I also load explicity the UML metamodel in my java code adding;
ParserUtil parserUtil = new ParserUtil();
ExecutionManager execMgr = ExecutionManager.getExecutionManager();
execMgr.lookupAndAddSourceMetaModel("uml","http://www.eclipse.org/uml2/2.0.0/UML");
but It seems that that code does not anything. If I change the metamodel to
the Ecore metamodel it works, I mean, the metamodel is found.
Could anybody help me? Does anybody have try to execute MOFScript
transformations by using java files? What configuration are you using?
Thank you very much in advance.
Bea
"bea" <beaperez@unizar.es> wrote in message
news:f9naul$tat$1@build.eclipse.org...
> Hello everybody,
> I would like to run Mofscript files from Java. I have no problem if I
> execute the main Mofscript transformation (it imports other m2t files)
> with the Mofscript interface but if I try to execute it from my java code
> I get the errors:
>
> Parsing result: 33 errors
>
> : Error: MTTParseError: Illegal/unknown context: uml, line: 0, column: 0
>
> ....
>
> : Error: MTTParseError: Cannot find import: guardas.m2t, line: 7, column:
> 7
>
> .....
>
> I think that it does not find neither the context
> http://www.eclipse.org/uml2/2.0.0/UML nor the imported m2t files. I am
> also using the sentence parserUtil.setCompilePath(templatesDir); in my
> java file. I am using Mofscript 1.2.4
>
> Any idea?
>
> Thank you very much in advance.
>
> Bea
>
>
|
|
|
Re: [Mofscript] The context http://www.eclipse.org/uml2/2.0.0/UML is not found ... [message #606591 is a reply to message #378868] |
Fri, 17 August 2007 06:03  |
Eclipse User |
|
|
|
And what about the following context :
http://www.eclipse.org/uml2/2.1.0/UML ? Does it solve your problem ?
Bea a écrit :
> Hi again,
> My configuration is Eclipse 3.3 and MOFScript 1.2.4 and perhaps the problem
> is that configuration. Although I think that it is strange since if I run
> the trnansformations directly, using MOFScript without using any Java file,
> it works perfectly.
> I also load explicity the UML metamodel in my java code adding;
> ParserUtil parserUtil = new ParserUtil();
> ExecutionManager execMgr = ExecutionManager.getExecutionManager();
> execMgr.lookupAndAddSourceMetaModel("uml","http://www.eclipse.org/uml2/2.0.0/UML");
>
>
> but It seems that that code does not anything. If I change the metamodel to
> the Ecore metamodel it works, I mean, the metamodel is found.
> Could anybody help me? Does anybody have try to execute MOFScript
> transformations by using java files? What configuration are you using?
>
>
> Thank you very much in advance.
> Bea
>
>
>
> "bea" <beaperez@unizar.es> wrote in message
> news:f9naul$tat$1@build.eclipse.org...
>> Hello everybody,
>> I would like to run Mofscript files from Java. I have no problem if I
>> execute the main Mofscript transformation (it imports other m2t files)
>> with the Mofscript interface but if I try to execute it from my java code
>> I get the errors:
>>
>> Parsing result: 33 errors
>>
>> : Error: MTTParseError: Illegal/unknown context: uml, line: 0, column: 0
>>
>> ....
>>
>> : Error: MTTParseError: Cannot find import: guardas.m2t, line: 7, column:
>> 7
>>
>> .....
>>
>> I think that it does not find neither the context
>> http://www.eclipse.org/uml2/2.0.0/UML nor the imported m2t files. I am
>> also using the sentence parserUtil.setCompilePath(templatesDir); in my
>> java file. I am using Mofscript 1.2.4
>>
>> Any idea?
>>
>> Thank you very much in advance.
>>
>> Bea
>>
>>
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06456 seconds