Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xpand Project Problems
Xpand Project Problems [message #60540] Sat, 18 July 2009 01:39 Go to next message
Porter is currently offline PorterFriend
Messages: 42
Registered: July 2009
Member
I tried the new Xpand project wizard with "create a sample" checked.
There seems to be nothing wrong with the ecore, xtend, xpand, and check
files.

However I receive the following error messages on running the mwe:

Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.1, Build v200907170432
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found:
'org.eclipse.mwe.emf.StandaloneSetup'(Element: bean bean
class='org.eclipse.mwe.emf.StandaloneSetup' in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:7;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'platformUri' in
clazz 'java.lang.Object' found.(Element: platformUri='..' in C:/Documents
and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:8;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found: 'org.eclipse.mwe.emf.Reader'(Element:
bean component class='org.eclipse.mwe.emf.Reader' in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:12;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'uri' in clazz
'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element:
uri='platform:/resource/my.generator.project/src/Model.xmi' in
C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:13;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'modelSlot' in
clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element:
modelSlot='model' in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:14;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found:
'org.eclipse.m2t.type.emf.EmfRegistryMetaModel'(Element: bean metaModel
class='org.eclipse.m2t.type.emf.EmfRegistryMetaModel' id='mm' in
C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:20;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: Class not found:
'org.eclipse.xtend.xpand2.Generator'(Element: bean component
class='org.eclipse.xtend.xpand2.Generator' in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:26;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No setter or adder method for property 'metaModel' in
clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found(Element:
<metaModel idRef='mm'/> in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:27;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'expand' in clazz
'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element:
expand='template::Template::main FOR model' in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:29;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
SEVERE: [ERROR]: No getter or adder method for property 'outlet' in clazz
'org.eclipse.emf.mwe.core.WorkflowComponent' found. Forgot to
customize?(Element: bean outlet in C:/Documents and
Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:30;
Reported by: -UNKNOWN-)
Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
SEVERE: Workflow interrupted because of configuration errors.


xtext generator project works fine.

Is there a problem with the generated MWE file?


<?xml version="1.0"?>
<workflow>
<property name="model" value="my.generator.project/src/Model.xmi" />
<property name="src-gen" value="src-gen" />

<!-- set up EMF for standalone execution -->
<bean class="org.eclipse.mwe.emf.StandaloneSetup" >
<platformUri value=".."/>
</bean>

<!-- load model and store it in slot 'model' -->
<component class="org.eclipse.mwe.emf.Reader">
<uri value="platform:/resource/${model}" />
<modelSlot value="model" />
</component>

<!-- check model -->
<component class="org.eclipse.xtend.check.CheckComponent">
<metaModel id="mm"
class="org.eclipse.m2t.type.emf.EmfRegistryMetaModel"/>
<checkFile value="metamodel::Checks" />
<emfAllChildrenSlot value="model" />
</component>

<!-- generate code -->
<component class="org.eclipse.xtend.xpand2.Generator">
<metaModel idRef="mm"/>
<expand
value="template::Template::main FOR model" />
<outlet path="${src-gen}" >
<postprocessor class="org.eclipse.xtend.xpand2.output.JavaBeautifier" />
</outlet>
</component>
</workflow>
Re: Xpand Project Problems [message #60554 is a reply to message #60540] Sat, 18 July 2009 10:15 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Porter,

please doublecheck any class name in your mwe file.
For example org.eclipse.mwe.emf.StandaloneSetup resides in another
package and should be org.eclipse.emf.mwe.utils.StandaloneSetup.
This is only an example, other class names are likely to be wrong too.
Have a look for Class not found in the log output.

Hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 18.07.2009 3:39 Uhr, schrieb Porter Ricks:
> I tried the new Xpand project wizard with "create a sample" checked.
> There seems to be nothing wrong with the ecore, xtend, xpand, and check
> files.
>
> However I receive the following error messages on running the mwe:
>
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 0.7.1, Build v200907170432
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow: C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe
>
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner
> logIssues
> SEVERE: [ERROR]: Class not found:
> 'org.eclipse.mwe.emf.StandaloneSetup'(Element: bean bean
> class='org.eclipse.mwe.emf.StandaloneSetup' in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:7;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No getter or adder method for property 'platformUri' in
> clazz 'java.lang.Object' found.(Element: platformUri='..' in
> C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:8;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: Class not found: 'org.eclipse.mwe.emf.Reader'(Element:
> bean component class='org.eclipse.mwe.emf.Reader' in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:12;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No getter or adder method for property 'uri' in clazz
> 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element:
> uri='platform:/resource/my.generator.project/src/Model.xmi' in
> C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:13;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No getter or adder method for property 'modelSlot' in
> clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element:
> modelSlot='model' in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:14;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: Class not found:
> 'org.eclipse.m2t.type.emf.EmfRegistryMetaModel'(Element: bean metaModel
> class='org.eclipse.m2t.type.emf.EmfRegistryMetaModel' id='mm' in
> C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:20;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: Class not found:
> 'org.eclipse.xtend.xpand2.Generator'(Element: bean component
> class='org.eclipse.xtend.xpand2.Generator' in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:26;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No setter or adder method for property 'metaModel' in
> clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found(Element:
> <metaModel idRef='mm'/> in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:27;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No getter or adder method for property 'expand' in
> clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element:
> expand='template::Template::main FOR model' in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:29;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> SEVERE: [ERROR]: No getter or adder method for property 'outlet' in
> clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found. Forgot to
> customize?(Element: bean outlet in C:/Documents and
> Settings/Administrator/ws_ssjemf1/my.generator.project/src/w orkflow/generator.mwe:30;
> Reported by: -UNKNOWN-)
> Jul 18, 2009 11:28:50 AM org.eclipse.emf.mwe.core.WorkflowRunner prepare
> SEVERE: Workflow interrupted because of configuration errors.
>
>
> xtext generator project works fine.
>
> Is there a problem with the generated MWE file?
>
>
> <?xml version="1.0"?>
> <workflow>
> <property name="model" value="my.generator.project/src/Model.xmi" />
> <property name="src-gen" value="src-gen" />
>
> <!-- set up EMF for standalone execution -->
> <bean class="org.eclipse.mwe.emf.StandaloneSetup" >
> <platformUri value=".."/>
> </bean>
>
> <!-- load model and store it in slot 'model' -->
> <component class="org.eclipse.mwe.emf.Reader">
> <uri value="platform:/resource/${model}" />
> <modelSlot value="model" />
> </component>
>
> <!-- check model -->
> <component class="org.eclipse.xtend.check.CheckComponent">
> <metaModel id="mm"
> class="org.eclipse.m2t.type.emf.EmfRegistryMetaModel"/>
> <checkFile value="metamodel::Checks" />
> <emfAllChildrenSlot value="model" />
> </component>
>
> <!-- generate code -->
> <component class="org.eclipse.xtend.xpand2.Generator">
> <metaModel idRef="mm"/>
> <expand
> value="template::Template::main FOR model" />
> <outlet path="${src-gen}" >
> <postprocessor class="org.eclipse.xtend.xpand2.output.JavaBeautifier" />
> </outlet>
> </component>
> </workflow>
>
>
Re: Xpand Project Problems [message #60839 is a reply to message #60554] Sat, 18 July 2009 11:55 Go to previous messageGo to next message
Porter is currently offline PorterFriend
Messages: 42
Registered: July 2009
Member
Sebastian

Thanks for your help. The Standalone setup looked odd to me too since it
referred to a different plugin than the equivalent in the Xtext sample
project.
The MWE file I'm talking about is automatically generated by the Xpand
project wizard.

I realised after posting I should have posted to the M2T newsgroup and
I'll follow up there.

Thanks

Porter.
Re: Xpand Project Problems [message #60846 is a reply to message #60839] Sat, 18 July 2009 12:11 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Porter,

this is a bug. Please file a ticket for M2T Xpand. Thanks.

Regards,
Sebastian

--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 18.07.2009 13:55 Uhr, schrieb Porter:
> Sebastian
>
> Thanks for your help. The Standalone setup looked odd to me too since it
> referred to a different plugin than the equivalent in the Xtext sample
> project.
> The MWE file I'm talking about is automatically generated by the Xpand
> project wizard.
>
> I realised after posting I should have posted to the M2T newsgroup and
> I'll follow up there.
>
> Thanks
> Porter.
>
Re: Xpand Project Problems [message #488319 is a reply to message #60846] Mon, 28 September 2009 05:01 Go to previous message
Thomas Schwitzer is currently offline Thomas SchwitzerFriend
Messages: 1
Registered: September 2009
Junior Member
Hi,

I have the same problem - the xpand example wont work.
My eclipse package is "eclipse-modeling-galileo-SR1-incubation-win32".

After the following workaround you will be able to run the workflow:


1. Add some bundle dependencies:

Require-Bundle: org.eclipse.xpand,
org.eclipse.xtend,
org.eclipse.xtend.typesystem.emf,
org.eclipse.emf.mwe.utils;bundle-version="0.7.2",
org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
org.eclipse.jface.text;bundle-version="3.5.1",
org.antlr.runtime;bundle-version="3.0.0",
com.ibm.icu;bundle-version="4.0.1",
org.eclipse.core.runtime;bundle-version="3.5.0",
org.eclipse.jdt.core;bundle-version="3.5.1"


2. Replace some lines in workflow.mwe:

* <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
* <component class="org.eclipse.emf.mwe.utils.Reader">
* <metaModel id="mm" class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
* <component class="org.eclipse.xpand2.Generator">
* <postprocessor class="org.eclipse.xpand2.output.JavaBeautifier" />


The whole workflow.mwe file is attached to this message...


Regards,

Thomas
Previous Topic:Xtext different results for different alternative ordering
Next Topic:Antlr versionitis?
Goto Forum:
  


Current Time: Sat Nov 09 00:04:03 GMT 2024

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

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

Back to the top