Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » UML Testing Profile xmi error loading
UML Testing Profile xmi error loading [message #889930] Wed, 20 June 2012 09:45
Mauro Faella is currently offline Mauro FaellaFriend
Messages: 31
Registered: June 2012
Member
Hi all,
I'm trying to apply the UTP to an UML model.

My starting point is the transformation rule:

-- @nsURI UML=hxxp://www.eclipse.org/uml2/2.1.0/UML


module AddObj;
create OUT: UML from IN: UML, UTP: UML;

rule ApplyProfile {
	from
		i: UML!Model
	to
		o: UML!Model (
			name <- i.name
		)
	do {
		-- apply profile to target model element
		o.applyProfile(UTP!Profile.allInstances().asSequence().first());
	}
}


In input I put the source uml model and the UTP.xmi from omg specification site. This xmi requires a simple modification to work.
When I start the transformation I get this error:
Error loading platform:/resource/UTP_xmi/Utp.xmi: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'hxxp://schema.omg.org/spec/XMI/2.1' not found. (platform:/resource/UTP_xmi/Utp.xmi, 8, 70)

Any suggestion?
Thanks in advance


PS: hxxp=http Wink
Previous Topic:ATL transformation
Next Topic:ATL and UML
Goto Forum:
  


Current Time: Mon Dec 22 05:54:40 GMT 2014

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

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