First run fails

When trying to run a newly created module (as generated by axelor new-module --name xxx), an error is raised.
It seems to be unhappy with [module]/src/main/resources/views/Menu.xml:object-views.menuitem.priority
Removing this attribute fixes the issue.
Here is an extract of the errorlog :
2016-11-17 07:09:39,997 [localhost-startStop-1] ERROR com.axelor.web.servlet.InitServlet - javax.xml.bind.UnmarshalException

  • with linked exception:
    [Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute ‘priority’ is not allowed to appear in element ‘’.]
    java.lang.RuntimeException: javax.xml.bind.UnmarshalException

Hello,
We found the issue. Our module templates are not up to date with latest views definition.
Will work on it soon.
Regards

Hi,
The issue has been fixed.
Scaffolding templates was not up to date : priority attribute in Menu.xml file has been renamed to order. So you can easily change it in your module and the error will be gone.
The fix is not yet available on github public repository. It will be soon.
Regards,
Axelor Team

Thank you.
Nice to see your reactivity for such a trivial problem !