Skip to main content



      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 05:30 Go to next message
Eclipse UserFriend
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 05:32] by Moderator

Re: Acceleo run error [message #1767939 is a reply to message #1767937] Wed, 12 July 2017 05:33 Go to previous messageGo to next message
Eclipse UserFriend
what should i do to fix this problem?
Re: Acceleo run error [message #1768056 is a reply to message #1767939] Thu, 13 July 2017 06:26 Go to previous message
Eclipse UserFriend
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: Thu May 22 19:36:03 EDT 2025

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

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

Back to the top