[Acceleo] Resource Factory issue [message #708233] |
Tue, 02 August 2011 11:45  |
Eclipse User |
|
|
|
Hello,
I started an Acceleo project based on a custom metamodel, and everything was working until I decided to migrate from Acceleo 3.0.3 to 3.1.
Without making any modification in my templates, I now have this error when I try to generate some code :
Exception in thread "main" java.lang.RuntimeException: Cannot create a resource for 'file:/Users/siv/Documents/repos/pod-programming/modeling/podml/org.eclipse.acceleo.podml.to.java.bis/src/scrum.podml'; a registered resource factory is needed
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:394)
at org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:348)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initialize(AbstractAcceleoGenerator.java:416)
at com.podprogramming.framework.ui.classesgeneration.common.Generate.<init>(Generate.java:96)
at com.podprogramming.framework.ui.classesgeneration.common.Generate.main(Generate.java:143)
Until now, it wasn't necessary to mannually register the ResourceFactory. Any ideas about the cause of this issue ?
Regards.
|
|
|
|
|
|
|
|
|
|
|
|
Re: [Acceleo] Resource Factory issue [message #717706 is a reply to message #716729] |
Mon, 22 August 2011 03:06  |
Eclipse User |
|
|
|
Hi,
Since I was using the same workspace in Helios and Indigo, I had a lot of issues. So I made a clean installation of Indigo and remade all my projects. As a consequence, it finally works and I didn't see the Resource Factory error again.
Thanks anyway for your tips, I hope it will help some other people facing similar issues.
Simon
|
|
|
Powered by
FUDForum. Page generated in 1.03664 seconds