Search code examples
eclipseeclipse-emf-ecoreemf

EMF namespace URI/prefix is null


I have to use EMF to create a EMF Generator Model from an existing ecore diagram, but it gives me namespace errors when trying to do so.

Here is is the screenshot of the two errors.

Errors

I think the error might be in the ecore file (XML), but I have no idea what to write, as I have only been using the GUI tool to create the ecore model...

My ecorediag file is here, and my ecore file is here.

I have bad experience with EMF, as it has never worked smoothly without any hiccups, and this is yet another problem, however, I am forced to use it.

I tried Googling the errors, but only 9 and 8 hits were returned, most of which did not help solve the problem.

What do I need to edit in the ecorediag or ecore file to be able to generate my EMF Generator Model?

For the record, I am using Eclipse 4.2.2.


Solution

  • change nsURI in to "http: ///ecore_file_name.ecore" and nsPrefix into "ecore_file_name" it woks great