Problem injector TCS [message #9847] |
Tue, 01 April 2008 08:44  |
Eclipse User |
|
|
|
Originally posted by: romain.perruchon.thalesgroup.com
Hi,
I try to create an Anomalies model from an Anomalies meta-model and a TCS
grammar using the injector. So I have an Anomalies.km3 (meta-model) and an
Anomalies.tcs (syntax) file. An anomaly represent a line in a Mantis CSV
export.
I follow the instructions from
http://wiki.eclipse.org/TCS/Language_Project to have the Ant-based builder
and I obtained the follow directory structure :
http://img292.imageshack.us/img292/7536/departth7.png
The folder "Chainage" contain my ant task to launch transformations
(contained in the folder "Transformations").
The folder "Metamodel" contain my Anomalies.km3 meta-model and two other
meta-models.
The folder "Resultats" will contain the transformation's results.
The folder "Samples" contain an exemple of mantis CSV export.
The folder "Syntax" contain my Anomalies.tcs syntax.
The folder "TGE" is generated automatically by the ant build.
Problems :
- When I launch the ant build from injector.xml, I have the following
error :
------------------------------------------------------------ -------------
Buildfile: E:\work_test\Anomalies\injector.xml
injection:
[am3.loadModel] Loading of model Anomalies
BUILD FAILED
E:\work_test\Anomalies\injector.xml:20: File with following path:
'/Anomalies/Metamodel/Anomalies.ecore' does not exist in the workspace.
------------------------------------------------------------ -------------
In fact, my Anomalies.ecore (that you can see in the picture of the
directory structure) disappear.
the error appear during the build.metamodel.xml build.
Why The Anomalies.ecore disappear ? when a make a change in my workspace,
it is automatically generated.
I also have a TCSRuntime error :
http://img106.imageshack.us/img106/8337/tcsruntimeerrorlh5.p ng
If I launch the ant task from build.metamodel.xml, I obtain the following
error :
------------------------------------------------------------ -------------
Buildfile: E:\workspace2\AMMAScripts\build.metamodel.xml
check.dependencies:
set.conditions:
metamodel.km3.injection:
[am3.loadModel] Loading of model KM3
[am3.loadModel] Loading of model Anomalies-KM3
BUILD FAILED
E:\workspace2\AMMAScripts\build.metamodel.xml:71:
java.lang.NoClassDefFoundError: Lorg/eclipse/gmt/tcs/injector/TCSRuntime;
Total time: 1 second
------------------------------------------------------------ -------------
I notice that, in the generated java files (in
/Anomalies/Syntax/org/eclipse/gmt/tcs/injector/), I have some errors. Is
that ok ?
Thanks
|
|
|
Re: Problem injector TCS [message #9870 is a reply to message #9847] |
Tue, 01 April 2008 18:24   |
Eclipse User |
|
|
|
Hi,
The TCSRuntime class was recently introduced in the injector, and
AMMACore was modified correspondingly. It seems that your version of
AMMACore is more recent than your version of the injector.
Could you try with a more recent version of the injector? To do this,
you need a new version of plugin org.eclipse.m2m.atl.engine from branch
R2_1_0_dev.
Regards,
Frédéric Jouault
romain Perruchon a écrit :
> Hi,
>
> I try to create an Anomalies model from an Anomalies meta-model and a
> TCS grammar using the injector. So I have an Anomalies.km3 (meta-model)
> and an Anomalies.tcs (syntax) file. An anomaly represent a line in a
> Mantis CSV export.
>
> I follow the instructions from
> http://wiki.eclipse.org/TCS/Language_Project to have the Ant-based
> builder and I obtained the follow directory structure :
> http://img292.imageshack.us/img292/7536/departth7.png
>
> The folder "Chainage" contain my ant task to launch transformations
> (contained in the folder "Transformations").
>
> The folder "Metamodel" contain my Anomalies.km3 meta-model and two other
> meta-models.
>
> The folder "Resultats" will contain the transformation's results.
>
> The folder "Samples" contain an exemple of mantis CSV export.
>
> The folder "Syntax" contain my Anomalies.tcs syntax.
>
> The folder "TGE" is generated automatically by the ant build.
>
> Problems :
> - When I launch the ant build from injector.xml, I have the following
> error :
>
> ------------------------------------------------------------ -------------
> Buildfile: E:\work_test\Anomalies\injector.xml
>
> injection:
> [am3.loadModel] Loading of model Anomalies
>
> BUILD FAILED
> E:\work_test\Anomalies\injector.xml:20: File with following path:
> '/Anomalies/Metamodel/Anomalies.ecore' does not exist in the workspace.
> ------------------------------------------------------------ -------------
>
> In fact, my Anomalies.ecore (that you can see in the picture of the
> directory structure) disappear.
>
> the error appear during the build.metamodel.xml build.
>
> Why The Anomalies.ecore disappear ? when a make a change in my
> workspace, it is automatically generated.
> I also have a TCSRuntime error :
> http://img106.imageshack.us/img106/8337/tcsruntimeerrorlh5.p ng
>
> If I launch the ant task from build.metamodel.xml, I obtain the
> following error :
>
> ------------------------------------------------------------ -------------
> Buildfile: E:\workspace2\AMMAScripts\build.metamodel.xml
>
> check.dependencies:
>
> set.conditions:
>
> metamodel.km3.injection:
> [am3.loadModel] Loading of model KM3
> [am3.loadModel] Loading of model Anomalies-KM3
>
> BUILD FAILED
> E:\workspace2\AMMAScripts\build.metamodel.xml:71:
> java.lang.NoClassDefFoundError: Lorg/eclipse/gmt/tcs/injector/TCSRuntime;
>
> Total time: 1 second
> ------------------------------------------------------------ -------------
>
> I notice that, in the generated java files (in
> /Anomalies/Syntax/org/eclipse/gmt/tcs/injector/), I have some errors. Is
> that ok ?
>
>
> Thanks
>
>
>
|
|
|
Re: [TCS] Problem injector TCS [message #9893 is a reply to message #9870] |
Tue, 01 April 2008 18:26   |
Eclipse User |
|
|
|
Could you please remember to prefix the subject of your TCS-related
posts with TCS as I did in this message?
Thanks.
Regards,
Frédéric Jouault
Frédéric Jouault a écrit :
> Hi,
>
> The TCSRuntime class was recently introduced in the injector, and
> AMMACore was modified correspondingly. It seems that your version of
> AMMACore is more recent than your version of the injector.
>
> Could you try with a more recent version of the injector? To do this,
> you need a new version of plugin org.eclipse.m2m.atl.engine from branch
> R2_1_0_dev.
>
>
> Regards,
>
> Frédéric Jouault
>
>
> romain Perruchon a écrit :
>> Hi,
>>
>> I try to create an Anomalies model from an Anomalies meta-model and a
>> TCS grammar using the injector. So I have an Anomalies.km3
>> (meta-model) and an Anomalies.tcs (syntax) file. An anomaly represent
>> a line in a Mantis CSV export.
>>
>> I follow the instructions from
>> http://wiki.eclipse.org/TCS/Language_Project to have the Ant-based
>> builder and I obtained the follow directory structure :
>> http://img292.imageshack.us/img292/7536/departth7.png
>>
>> The folder "Chainage" contain my ant task to launch transformations
>> (contained in the folder "Transformations").
>>
>> The folder "Metamodel" contain my Anomalies.km3 meta-model and two
>> other meta-models.
>>
>> The folder "Resultats" will contain the transformation's results.
>>
>> The folder "Samples" contain an exemple of mantis CSV export.
>>
>> The folder "Syntax" contain my Anomalies.tcs syntax.
>>
>> The folder "TGE" is generated automatically by the ant build.
>>
>> Problems :
>> - When I launch the ant build from injector.xml, I have the following
>> error :
>>
>> ------------------------------------------------------------ -------------
>> Buildfile: E:\work_test\Anomalies\injector.xml
>>
>> injection:
>> [am3.loadModel] Loading of model Anomalies
>>
>> BUILD FAILED
>> E:\work_test\Anomalies\injector.xml:20: File with following path:
>> '/Anomalies/Metamodel/Anomalies.ecore' does not exist in the workspace.
>> ------------------------------------------------------------ -------------
>>
>> In fact, my Anomalies.ecore (that you can see in the picture of the
>> directory structure) disappear.
>>
>> the error appear during the build.metamodel.xml build.
>>
>> Why The Anomalies.ecore disappear ? when a make a change in my
>> workspace, it is automatically generated.
>> I also have a TCSRuntime error :
>> http://img106.imageshack.us/img106/8337/tcsruntimeerrorlh5.p ng
>>
>> If I launch the ant task from build.metamodel.xml, I obtain the
>> following error :
>>
>> ------------------------------------------------------------ -------------
>> Buildfile: E:\workspace2\AMMAScripts\build.metamodel.xml
>>
>> check.dependencies:
>>
>> set.conditions:
>>
>> metamodel.km3.injection:
>> [am3.loadModel] Loading of model KM3
>> [am3.loadModel] Loading of model Anomalies-KM3
>>
>> BUILD FAILED
>> E:\workspace2\AMMAScripts\build.metamodel.xml:71:
>> java.lang.NoClassDefFoundError: Lorg/eclipse/gmt/tcs/injector/TCSRuntime;
>>
>> Total time: 1 second
>> ------------------------------------------------------------ -------------
>>
>> I notice that, in the generated java files (in
>> /Anomalies/Syntax/org/eclipse/gmt/tcs/injector/), I have some errors.
>> Is that ok ?
>>
>>
>> Thanks
>>
>>
>>
|
|
|
|
|
Re: [TCS] Problem injector TCS [message #9962 is a reply to message #9940] |
Tue, 08 April 2008 03:26  |
Eclipse User |
|
|
|
Originally posted by: romain.perruchon.thalesgroup.com
Hi,
With the configuration (3), without the ant builder (just with the TCS
builder and ATL builder), I have another error.
When I launch injector.xml, I have this :
Buildfile: E:\test2\workspace_test\Anomalies\injector.xml
injection:
[am3.loadModel] Loading of model Anomalies
[am3.loadModel] Loading of model myAnomalies
[am3.loadModel] java.lang.ClassNotFoundException:
org.eclipse.gmt.tcs.injector.Anomalies_ANTLR3Lexer
[am3.loadModel] at java.net.URLClassLoader$1.run(Unknown Source)
[am3.loadModel] at java.security.AccessController.doPrivileged(Native
Method)
[am3.loadModel] at java.net.URLClassLoader.findClass(Unknown Source)
[am3.loadModel] at java.lang.ClassLoader.loadClass(Unknown Source)
[am3.loadModel] at java.lang.ClassLoader.loadClass(Unknown Source)
[am3.loadModel] at
org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLo ader.java:1414)
[am3.loadModel] at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader .java:1085)
[am3.loadModel] at java.lang.ClassLoader.loadClass(Unknown Source)
[am3.loadModel] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[am3.loadModel] at java.lang.Class.forName0(Native Method)
[am3.loadModel] at java.lang.Class.forName(Unknown Source)
[am3.loadModel] at
org.eclipse.gmt.tcs.injector.wrappers.antlr3.ParserWrapper.g etLexerClass(ParserWrapper.java:196)
[am3.loadModel] at
org.eclipse.gmt.tcs.injector.TCSInjector.performImportation( TCSInjector.java:165)
[am3.loadModel] at
org.eclipse.gmt.tcs.injector.TCSInjector.inject(TCSInjector. java:97)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.toolkit.AM3AntToolKit.ebnfInje ction(AM3AntToolKit.java:258)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.toolkit.AM3AntToolKit.ebnfInje ction(AM3AntToolKit.java:275)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.toolkit.AM3AntToolKit.inject(A M3AntToolKit.java:283)
[am3.loadModel] at
org.eclipse.gmt.am3.tools.ant.tasks.LoadModelTask.execute(Lo adModelTask.java:60)
[am3.loadModel] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[am3.loadModel] at java.lang.reflect.Method.invoke(Unknown Source)
[am3.loadModel] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[am3.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[am3.loadModel] at org.apache.tools.ant.Target.execute(Target.java:357)
[am3.loadModel] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[am3.loadModel] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[am3.loadModel] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[am3.loadModel] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[am3.loadModel] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[am3.loadModel] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[am3.loadModel] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
[am3.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[am3.loadModel] at java.lang.reflect.Method.invoke(Unknown Source)
[am3.loadModel] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:377)
[am3.loadModel] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[am3.loadModel] at java.lang.Thread.run(Unknown Source)
[am3.saveModel] Saving model myAnomalies
BUILD SUCCESSFUL
Total time: 942 milliseconds
It generate a file (.xmi) with juste the head :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
The org.eclipse.gmt.tcs.injector.Anomalies_ANTLR3Lexer is located (was
generated) in the Syntax folder.
These files (Anomalies_ANTLR3Lexer.java and Anomalies_ANTLR3Parser.java)
are full of errors.
What do I have to do to resolve the problem ?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.05086 seconds