Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo - Papyrus] Package with uri '--- ActionLanguage-Profile' not found.
icon9.gif  [Acceleo - Papyrus] Package with uri '--- ActionLanguage-Profile' not found. [message #1496899] Wed, 03 December 2014 06:18 Go to next message
Eclipse UserFriend
Note: I can't put links outside eclipse, so the URL are voluntary malformed.

Hi,

I'm trying to execute the Acceleo tutorial, based on a UML2 model, created with Papyrus.


But when I try to generate from an Accelelo module, i get the same error:

Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http //www.omg.org/spec/ALF/20120827/ActionLanguage-Profile'
not found.
(file:/H:/data/eclipse-luna/fr.etienne.test.pim.uml2.gen.java/model/test.uml, 60, 146)


The line 60 of the '' file is : <ActionLanguage:TextualRepresentation xmi:id="_r80WUHizEeSqrddYyeQP8w" language="org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty"/

And the ActionLanguage namespace is (suprise) :
xmlns:ActionLanguage="http//www.omg.org/spec/ALF/20120827/ActionLanguage-Profile"

So, how to make Acceleo accept this model ?


(BTW: both the uml model and the Acceleo module uses this UML version: xmlns:uml="http //www.eclipse.org/uml2/5.0.0/UML")

Etienne

NB: I attached the eclipse project (contains both models)

[Updated on: Wed, 03 December 2014 10:46] by Moderator

Re: [Acceleo - Papyrus] Package with uri '--- ActionLanguage-Profile' not found. [message #1698785 is a reply to message #1496899] Wed, 17 June 2015 17:30 Go to previous messageGo to next message
Eclipse UserFriend
I 've been working on the same problem and I found the answer in the Acceleo FAQ

Regards
Gabriela
Re: [Acceleo - Papyrus] Package with uri '--- ActionLanguage-Profile' not found. [message #1698884 is a reply to message #1496899] Thu, 18 June 2015 09:49 Go to previous message
Eclipse UserFriend
Hi,

In the Java launcher generated by Acceleo, there is a method called registerPackages. In this method, you will find a comment explaining how to register an EMF EPackage in order to have your models properly loaded afterwards. It should look like this.

Regards,

Stephane Bégaudeau, Obeo
Previous Topic:[Acceleo] Where to get it from?
Next Topic:ACCELEO EDITOR is not working correctly
Goto Forum:
  


Current Time: Mon May 19 23:33:49 EDT 2025

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

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

Back to the top