| Problems with webApp MoDisco model and ATL transformation [message #869376] |
Thu, 03 May 2012 06:03  |
Victor Pavon Messages: 10 Registered: April 2012 |
Junior Member |
|
|
Hi,
I'm tried use ATL to transform for m2m transformation, the source model is a webapp MoDisco metamodel, when I run the transformation occour the error:
Error loading platform:/resource/JSP&StrutsConfig2StrutsViewController/inputModel/web.xml_webapp.xmi: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'null' not found. (platform:/resource/JSP&StrutsConfig2StrutsViewController/inputModel/web.xml_webapp.xmi, 2, 25)
What am I doing wrong?
Thank you for your help.
|
|
|
| Re: Problems with webApp MoDisco model and ATL transformation [message #869561 is a reply to message #869376] |
Thu, 03 May 2012 11:41   |
Hugo Bruneliere Messages: 462 Registered: July 2009 |
Senior Member |
|
|
Hello,
It seems that the metamodel URI indicated in your model file is "null".
It should rather be the URI used by MoDisco to register the WebApp metamodel in the EMF Registry.
Did you obtain your model using the corresponding MoDisco discoverer?
And also, did you correctly set the metamodel in the ATL launch configuration for your transformation?
Regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
|
|
| Re: Problems with webApp MoDisco model and ATL transformation [message #870648 is a reply to message #869930] |
Wed, 09 May 2012 04:19   |
Hugo Bruneliere Messages: 462 Registered: July 2009 |
Senior Member |
|
|
Hi Victor,
Thanks for your solution!
Actually, the DocumentRoot element is automatically added by EMF when loading the XMLResource but it is not conceptually part of the model.
You can avoid its creation by setting the following load option to true: XMLResource.OPTION_SUPPRESS_DOCUMENT_ROOT.
The StrutsConfig element then becomes the root element of your model.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
Powered by
FUDForum. Page generated in 0.01711 seconds