Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JET - Feature 'version' not found
JET - Feature 'version' not found [message #51762] Fri, 22 September 2006 07:13 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 191
Registered: July 2009
Senior Member
Hi,

I am trying to generate the xml and java artifacts based on my EMF model
using the JET2 Transformations. When I try to execute the
runTransformationOnResource() on the model (that I have generated using my
Editor) from my Action, am getting the Feature 'version' not found error ,
with the path given to my model file at a loaction (2,-1)

Help in this regard is highly appericiated.

Thanks and Regards,
Kamesh
Re: JET - Feature 'version' not found [message #51956 is a reply to message #51762] Fri, 22 September 2006 12:40 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Kamesh:

JET transformations are setup by default to consume XML documents, not ECore
documents.

To fix your transformation, open the plugin.xml in you transformation
project. Switch to the Extension tag, expand the org.eclipse.jet.transform
extension , and select the 'transform' element. In the Extension Element
Details pane, set the 'modelLoader' property to 'org.eclipse.jet.emf'. Save,
and try running your transformation again.

BTW, documentation on how to do this was recently added to the JET 0.7.1
maintenance build.

Paul Elder

"Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
news:fbe9de061313c36bbd142ae4f2f7acc1$1@www.eclipse.org...
> Hi,
>
> I am trying to generate the xml and java artifacts based on my EMF model
> using the JET2 Transformations. When I try to execute the
> runTransformationOnResource() on the model (that I have generated using my
> Editor) from my Action, am getting the Feature 'version' not found error ,
> with the path given to my model file at a loaction (2,-1)
> Help in this regard is highly appericiated.
>
> Thanks and Regards,
> Kamesh
>
Re: JET - Feature 'version' not found [message #52242 is a reply to message #51956] Sat, 23 September 2006 02:23 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 191
Registered: July 2009
Senior Member
Paul Elder wrote:
> Kamesh:
>
> JET transformations are setup by default to consume XML documents, not ECore
> documents.
>
> To fix your transformation, open the plugin.xml in you transformation
> project. Switch to the Extension tag, expand the org.eclipse.jet.transform
> extension , and select the 'transform' element. In the Extension Element
> Details pane, set the 'modelLoader' property to 'org.eclipse.jet.emf'. Save,
> and try running your transformation again.
>
> BTW, documentation on how to do this was recently added to the JET 0.7.1
> maintenance build.
>
> Paul Elder
>
> "Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
> news:fbe9de061313c36bbd142ae4f2f7acc1$1@www.eclipse.org...
>> Hi,
>>
>> I am trying to generate the xml and java artifacts based on my EMF model
>> using the JET2 Transformations. When I try to execute the
>> runTransformationOnResource() on the model (that I have generated using my
>> Editor) from my Action, am getting the Feature 'version' not found error ,
>> with the path given to my model file at a loaction (2,-1)
>> Help in this regard is highly appericiated.
>>
>> Thanks and Regards,
>> Kamesh
>>
>
>
Paul,

Thanks for the insight in to this problem all my issues are resolved and
my artifacts are getting generated but when i see the log trace am
getting the following exceptions,

1)org.eclipse.jet.taglib.JET2TagException: Variable
"org.eclipse.jet.resource.project.name" is not defined.

2)org.eclipse.jet.taglib.JET2TagException: Variable
"org.eclipse.jet.resource.fileName" is not defined.

I am running the JET transformation from my action class , the code
snippet as follows,

JET2Context context = new JET2Context(StrutsConfigType.class);
JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
modelFile, new NullProgressMonitor());

IStatus status = JET2Platform.runTransform(
ARTIFACT_XML_TRANSFORMER_ID, context, new NullProgressMonitor());

Please let me know why am getting an expception trace in my eclipse log
inspite of the artifacts getting generated properly as expected ????

Thanks and Regards,
Kamesh
Re: JET - Feature 'version' not found [message #52373 is a reply to message #52242] Mon, 25 September 2006 12:15 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Kamesh:

You seem to be running the transformation twice:

> JET2Context context = new JET2Context(StrutsConfigType.class);
> JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
> modelFile, new NullProgressMonitor());
.... this runs it once, should work ...

>
> IStatus status = JET2Platform.runTransform( ARTIFACT_XML_TRANSFORMER_ID,
> context, new NullProgressMonitor());
.... this attempts to run it again, probably won't work...

In fact, your could can be simplified to the one statement:
> JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
> modelFile, new NullProgressMonitor());

Paul

"Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
news:ef25rg$djj$1@utils.eclipse.org...
> Paul Elder wrote:
>> Kamesh:
>>
>> JET transformations are setup by default to consume XML documents, not
>> ECore documents.
>>
>> To fix your transformation, open the plugin.xml in you transformation
>> project. Switch to the Extension tag, expand the
>> org.eclipse.jet.transform extension , and select the 'transform' element.
>> In the Extension Element Details pane, set the 'modelLoader' property to
>> 'org.eclipse.jet.emf'. Save, and try running your transformation again.
>>
>> BTW, documentation on how to do this was recently added to the JET 0.7.1
>> maintenance build.
>>
>> Paul Elder
>>
>> "Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
>> news:fbe9de061313c36bbd142ae4f2f7acc1$1@www.eclipse.org...
>>> Hi,
>>>
>>> I am trying to generate the xml and java artifacts based on my EMF model
>>> using the JET2 Transformations. When I try to execute the
>>> runTransformationOnResource() on the model (that I have generated using
>>> my Editor) from my Action, am getting the Feature 'version' not found
>>> error , with the path given to my model file at a loaction (2,-1)
>>> Help in this regard is highly appericiated.
>>>
>>> Thanks and Regards,
>>> Kamesh
>>>
>>
>>
> Paul,
>
> Thanks for the insight in to this problem all my issues are resolved and
> my artifacts are getting generated but when i see the log trace am
> getting the following exceptions,
>
> 1)org.eclipse.jet.taglib.JET2TagException: Variable
> "org.eclipse.jet.resource.project.name" is not defined.
>
> 2)org.eclipse.jet.taglib.JET2TagException: Variable
> "org.eclipse.jet.resource.fileName" is not defined.
>
> I am running the JET transformation from my action class , the code
> snippet as follows,
>
> JET2Context context = new JET2Context(StrutsConfigType.class);
> JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
> modelFile, new NullProgressMonitor());
>
> IStatus status = JET2Platform.runTransform( ARTIFACT_XML_TRANSFORMER_ID,
> context, new NullProgressMonitor());
>
> Please let me know why am getting an expception trace in my eclipse log
> inspite of the artifacts getting generated properly as expected ????
>
> Thanks and Regards,
> Kamesh
Re: JET - Feature 'version' not found [message #591734 is a reply to message #51762] Fri, 22 September 2006 12:40 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Kamesh:

JET transformations are setup by default to consume XML documents, not ECore
documents.

To fix your transformation, open the plugin.xml in you transformation
project. Switch to the Extension tag, expand the org.eclipse.jet.transform
extension , and select the 'transform' element. In the Extension Element
Details pane, set the 'modelLoader' property to 'org.eclipse.jet.emf'. Save,
and try running your transformation again.

BTW, documentation on how to do this was recently added to the JET 0.7.1
maintenance build.

Paul Elder

"Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
news:fbe9de061313c36bbd142ae4f2f7acc1$1@www.eclipse.org...
> Hi,
>
> I am trying to generate the xml and java artifacts based on my EMF model
> using the JET2 Transformations. When I try to execute the
> runTransformationOnResource() on the model (that I have generated using my
> Editor) from my Action, am getting the Feature 'version' not found error ,
> with the path given to my model file at a loaction (2,-1)
> Help in this regard is highly appericiated.
>
> Thanks and Regards,
> Kamesh
>
Re: JET - Feature 'version' not found [message #591812 is a reply to message #51956] Sat, 23 September 2006 02:23 Go to previous message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 191
Registered: July 2009
Senior Member
Paul Elder wrote:
> Kamesh:
>
> JET transformations are setup by default to consume XML documents, not ECore
> documents.
>
> To fix your transformation, open the plugin.xml in you transformation
> project. Switch to the Extension tag, expand the org.eclipse.jet.transform
> extension , and select the 'transform' element. In the Extension Element
> Details pane, set the 'modelLoader' property to 'org.eclipse.jet.emf'. Save,
> and try running your transformation again.
>
> BTW, documentation on how to do this was recently added to the JET 0.7.1
> maintenance build.
>
> Paul Elder
>
> "Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
> news:fbe9de061313c36bbd142ae4f2f7acc1$1@www.eclipse.org...
>> Hi,
>>
>> I am trying to generate the xml and java artifacts based on my EMF model
>> using the JET2 Transformations. When I try to execute the
>> runTransformationOnResource() on the model (that I have generated using my
>> Editor) from my Action, am getting the Feature 'version' not found error ,
>> with the path given to my model file at a loaction (2,-1)
>> Help in this regard is highly appericiated.
>>
>> Thanks and Regards,
>> Kamesh
>>
>
>
Paul,

Thanks for the insight in to this problem all my issues are resolved and
my artifacts are getting generated but when i see the log trace am
getting the following exceptions,

1)org.eclipse.jet.taglib.JET2TagException: Variable
"org.eclipse.jet.resource.project.name" is not defined.

2)org.eclipse.jet.taglib.JET2TagException: Variable
"org.eclipse.jet.resource.fileName" is not defined.

I am running the JET transformation from my action class , the code
snippet as follows,

JET2Context context = new JET2Context(StrutsConfigType.class);
JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
modelFile, new NullProgressMonitor());

IStatus status = JET2Platform.runTransform(
ARTIFACT_XML_TRANSFORMER_ID, context, new NullProgressMonitor());

Please let me know why am getting an expception trace in my eclipse log
inspite of the artifacts getting generated properly as expected ????

Thanks and Regards,
Kamesh
Re: JET - Feature 'version' not found [message #591862 is a reply to message #52242] Mon, 25 September 2006 12:15 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Kamesh:

You seem to be running the transformation twice:

> JET2Context context = new JET2Context(StrutsConfigType.class);
> JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
> modelFile, new NullProgressMonitor());
.... this runs it once, should work ...

>
> IStatus status = JET2Platform.runTransform( ARTIFACT_XML_TRANSFORMER_ID,
> context, new NullProgressMonitor());
.... this attempts to run it again, probably won't work...

In fact, your could can be simplified to the one statement:
> JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
> modelFile, new NullProgressMonitor());

Paul

"Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
news:ef25rg$djj$1@utils.eclipse.org...
> Paul Elder wrote:
>> Kamesh:
>>
>> JET transformations are setup by default to consume XML documents, not
>> ECore documents.
>>
>> To fix your transformation, open the plugin.xml in you transformation
>> project. Switch to the Extension tag, expand the
>> org.eclipse.jet.transform extension , and select the 'transform' element.
>> In the Extension Element Details pane, set the 'modelLoader' property to
>> 'org.eclipse.jet.emf'. Save, and try running your transformation again.
>>
>> BTW, documentation on how to do this was recently added to the JET 0.7.1
>> maintenance build.
>>
>> Paul Elder
>>
>> "Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
>> news:fbe9de061313c36bbd142ae4f2f7acc1$1@www.eclipse.org...
>>> Hi,
>>>
>>> I am trying to generate the xml and java artifacts based on my EMF model
>>> using the JET2 Transformations. When I try to execute the
>>> runTransformationOnResource() on the model (that I have generated using
>>> my Editor) from my Action, am getting the Feature 'version' not found
>>> error , with the path given to my model file at a loaction (2,-1)
>>> Help in this regard is highly appericiated.
>>>
>>> Thanks and Regards,
>>> Kamesh
>>>
>>
>>
> Paul,
>
> Thanks for the insight in to this problem all my issues are resolved and
> my artifacts are getting generated but when i see the log trace am
> getting the following exceptions,
>
> 1)org.eclipse.jet.taglib.JET2TagException: Variable
> "org.eclipse.jet.resource.project.name" is not defined.
>
> 2)org.eclipse.jet.taglib.JET2TagException: Variable
> "org.eclipse.jet.resource.fileName" is not defined.
>
> I am running the JET transformation from my action class , the code
> snippet as follows,
>
> JET2Context context = new JET2Context(StrutsConfigType.class);
> JET2Platform.runTransformOnResource(ARTIFACT_XML_TRANSFORMER _ID,
> modelFile, new NullProgressMonitor());
>
> IStatus status = JET2Platform.runTransform( ARTIFACT_XML_TRANSFORMER_ID,
> context, new NullProgressMonitor());
>
> Please let me know why am getting an expception trace in my eclipse log
> inspite of the artifacts getting generated properly as expected ????
>
> Thanks and Regards,
> Kamesh
Previous Topic:Teneo: Hibernate and Arrays as EDataType
Next Topic:How to use Progress Monitor with JET2 Transformation
Goto Forum:
  


Current Time: Thu Apr 25 00:31:35 GMT 2024

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

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

Back to the top