Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Acceleo run error(I new an Acceleo project and it works wrong)
Acceleo run error [message #1767937] Wed, 12 July 2017 09:30 Go to next message
wang shiyu is currently offline wang shiyuFriend
Messages: 18
Registered: June 2017
Junior Member
The wrong info are follows:
The generation failed to generate any file because there are no model elements that matches at least the type of the first parameter of one of your main templates.
The problem may be caused by a problem with the registration of your metamodel, please see the method named "registerPackages" in the Java launcher of your generator. It could also come from a missing [comment @main/]
in the template used as the entry point of the generation.

but i really have winapplication this element:

<?xml version="1.0" encoding="UTF-8"?>
<UILM:WinApplication
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:UILM="http://www.example.org/uilm"
xsi:schemaLocation="http://www.example.org/uilm uilm.ecore"
name="GMail">
<WinElements
xsi:type="UILM:WFrame"
name="Message">
<WinComponents
xsi:type="UILM:WPanel"
name="panel11">
<WinComponents
xsi:type="UILM:WLabel"
name="label111"
text="姓名"/>
</WinComponents>
<WinComponents
xsi:type="UILM:WPanel"
name="panel12"/>
<WinComponents
xsi:type="UILM:WLabel"
name="label1"
text="please enter name"/>
</WinElements>
<WinElements
xsi:type="UILM:WFrame"
name="MessageReader">
<WinComponents
xsi:type="UILM:WPanel"
name="panel21"/>
<WinComponents
xsi:type="UILM:WPanel"
name="panel22"/>
</WinElements>
<WinElements
xsi:type="UILM:WFrame"
name="MeassageDetails">
<WinComponents
xsi:type="UILM:WPanel"
name="panel31"/>
<WinComponents
xsi:type="UILM:WPanel"
name="panel32"/>
</WinElements>
</UILM:WinApplication>

[Updated on: Wed, 12 July 2017 09:32]

Report message to a moderator

Re: Acceleo run error [message #1767939 is a reply to message #1767937] Wed, 12 July 2017 09:33 Go to previous messageGo to next message
wang shiyu is currently offline wang shiyuFriend
Messages: 18
Registered: June 2017
Junior Member
what should i do to fix this problem?
Re: Acceleo run error [message #1768056 is a reply to message #1767939] Thu, 13 July 2017 10:26 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1901
Registered: July 2009
Senior Member
Hi,

The problem here is the way you're referencing your model.

[module('/uilm2code/metamodel/uilm.ecore')/]
should be
[module('http://www.example.org/uilm')/]

Regards,

Laurent Goubet
Obeo
Previous Topic:[Acceleo] Strange behavior for queries using the "iterate" method
Next Topic:Setting an absolute path for the File block
Goto Forum:
  


Current Time: Mon Dec 04 11:13:27 GMT 2023

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

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

Back to the top