Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XPand sample not working
XPand sample not working [message #489143] Thu, 01 October 2009 15:47 Go to next message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 186
Registered: July 2009
Location: Torino
Senior Member

Hi, I am trying to perform a M2T transformation with XPand.

I created an XPand project with sample.

When I try to run the generator.mwe in my just-created sample I get a bunch of errors:

1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: ------------------------------------------------------------ --------------------------
1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: ------------------------------------------------------------ --------------------------
1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe
1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Class not found: 'org.eclipse.mwe.emf.StandaloneSetup'(Element: bean bean class='org.eclipse.mwe.emf.StandaloneSetup' in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:7; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No getter or adder method for property 'platformUri' in clazz 'java.lang.Object' found.(Element: platformUri='..' in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:8; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Class not found: 'org.eclipse.mwe.emf.Reader'(Element: bean component class='org.eclipse.mwe.emf.Reader' in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:12; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [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:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:13; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No getter or adder method for property 'modelSlot' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element: modelSlot='model' in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:14; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Class not found: 'org.eclipse.m2t.type.emf.EmfRegistryMetaModel'(Element: bean metaModel class='org.eclipse.m2t.type.emf.EmfRegistryMetaModel' id='mm' in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:20; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Class not found: 'org.eclipse.xtend.xpand2.Generator'(Element: bean component class='org.eclipse.xtend.xpand2.Generator' in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:26; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No setter or adder method for property 'metaModel' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found(Element: <metaModel idRef='mm'/> in C:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:27; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [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:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:29; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [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:/Users/Federico/thesis/uwe_workspace/my.generator.project/ src/workflow/generator.mwe:30; Reported by: -UNKNOWN-)
1-ott-2009 17.44.15 org.eclipse.emf.mwe.core.WorkflowRunner prepare
GRAVE: Workflow interrupted because of configuration errors.


Re: XPand sample not working [message #489158 is a reply to message #489143] Thu, 01 October 2009 15:55 Go to previous messageGo to next message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

This is a multi-part message in MIME format.
--------------090509050102010600050001
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Frederico,

there was a bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283942

....should be fixed on 0.8.0

ekke

Federico Tomassetti schrieb:
> Hi, I am trying to perform a M2T transformation with XPand.
>
> I created an XPand project with sample.
>
> When I try to run the generator.mwe in my just-created sample I get a
> bunch of errors:
>
> 1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: ------------------------------------------------------------
> --------------------------
>


--

ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490


--------------090509050102010600050001
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Frederico,<br>
<br>
there was a bugzilla<br>
<a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=283942">https://bugs.eclipse.org/bugs/show_bug.cgi?id=283942</a><br>
<br>
....should be fixed on 0.8.0<br>
<br>
ekke<br>
<br>
Federico Tomassetti schrieb:
<blockquote cite="mid:ha2iur$vsh$1@build.eclipse.org" type="cite">Hi, I
am trying to perform a M2T transformation with XPand.
<br>
<br>
I created an XPand project with sample.
<br>
<br>
When I try to run the generator.mwe in my just-created sample I get a
bunch of errors:
<br>
<br>
1-ott-2009 17.44.14 org.eclipse.emf.mwe.core.WorkflowRunner prepare
<br>
INFO:  ------------------------------------------------------------
--------------------------
<br>
<br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0cm;"> <font ,="" color="#808080"
face="Verdana, sans-serif"> <font size="4">ekke (ekkehard gentz)<br>
</font> <font size="3"> independent software-architect<br>
senior erp-consultant<br>
</font> <font size="2">eclipse | osgi | equinox | mdsd | oaw | emf |
uml<br>
max-josefs-platz 30, D-83022 rosenheim, germany<br>
<a class="moz-txt-link-freetext" href="mailto:ekke@ekkes-corner.org">mailto:ekke@ekkes-corner.org</a><br>
homepage (de): <a class="moz-txt-link-freetext" href="http://gentz-software.de">http://gentz-software.de</a><br>
blog (en): <a class="moz-txt-link-freetext" href="http://ekkes-corner.org">http://ekkes-corner.org</a><br>
twitter: @ekkescorner<br>
skype: ekkes-corner<br>
</font> <font size="1"> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID:
DE189929490<br>
</font> </font> </p>
</div>
</body>
</html>

--------------090509050102010600050001--


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: XPand sample not working [message #489161 is a reply to message #489158] Thu, 01 October 2009 16:31 Go to previous messageGo to next message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 186
Registered: July 2009
Location: Torino
Senior Member

Thank, I corrected the mwe file and I had the jars in the build path but it still don't work. I suppose I have to specify the jars in some other place but I don't know where, can you point me in the right direction?

Federico


Re: XPand sample not working [message #489197 is a reply to message #489161] Thu, 01 October 2009 19:38 Go to previous message
Federico Tomassetti is currently offline Federico TomassettiFriend
Messages: 186
Registered: July 2009
Location: Torino
Senior Member

Ok, I discovered that I had to modify my manifest.mf

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: my.generator.projectSample
Bundle-SymbolicName: my.generator.projectSample; singleton:=true
Bundle-Version: 1.0.0
Require-Bundle: org.eclipse.xpand,
org.eclipse.xtend,
org.eclipse.xtend.typesystem.emf, org.eclipse.xtend.util.stdlib, org.eclipse.xtend.typesystem.uml2, org.eclipse.xtend.typesystem.xsd,org.eclipse.emf.mwe.utils,o rg.eclipse.uml2.uml.ecore.importer,org.antlr.runtime,org.ecl ipse.jface.text,com.ibm.icu,org.eclipse.core.runtime,org.ecl ipse.jdt.core
Bundle-RequiredExecutionEnvironment: J2SE-1.5

Is this the correct solution?


Previous Topic:[xpand] Permission denied
Next Topic:Starting at M2T
Goto Forum:
  


Current Time: Sun Nov 23 03:52:04 GMT 2014

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

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