Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:18 Go to next message
Etienne SF is currently offline Etienne SFFriend
Messages: 2
Registered: December 2014
Junior Member
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 15:46]

Report message to a moderator

Re: [Acceleo - Papyrus] Package with uri '--- ActionLanguage-Profile' not found. [message #1698785 is a reply to message #1496899] Wed, 17 June 2015 21:30 Go to previous messageGo to next message
Gabriela Mising name is currently offline Gabriela Mising nameFriend
Messages: 13
Registered: July 2009
Junior Member
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 13:49 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

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 Oct 14 02:31:46 GMT 2024

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

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

Back to the top