Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Class 'System' is not found or is abstract
[Acceleo] Class 'System' is not found or is abstract [message #895088] Wed, 11 July 2012 12:31 Go to previous message
Toni Marin is currently offline Toni Marin
Messages: 7
Registered: October 2011
Junior Member
Hi everyone,

We are trying to generate Lydia code from an xmi file. But we get the error "Class 'System' is not found or is abstract".

SO, we are using our own ecore metamodel. All packages are registered in the generated java file (I read it is not possible to register the metamodel alone when it is made of different packages, but all packages have to be individualy registered).
We use Indigo version.
The input model is an .xmi file. Here is the code we use for registering the factory resource:
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xmi", new XMIResourceFactoryImpl());


The heading of the input model is:
<?xml version="1.0" encoding="ASCII"?>
<STRUCT:[b]System[/b] xmi:version="2.0"
    xmlns:STRUCT="http: //zuse.ucc.ie/itobo/structure"   
    xmlns:DX="http: //zuse.ucc.ie/itobo/diagnosis"
    xmlns:PL="http: //zuse.ucc.ie/itobo/propositionallogic" 
    name="main">


All this packages are registered in the generated java file.

resourceSet.getPackageRegistry().put("http: //zuse.ucc.ie/itobo/structure", org.eclipse.emf.ecore.EcorePackage.eINSTANCE);


However registering everything, the error "class "System" is not found or is abstract" still comes up.

Also, sometimes the error "emtl file is not found" appears (may be significant(?))

Any help will be greatly appreciated.

Cheers

[Updated on: Thu, 12 July 2012 10:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Acceleo] Removing duplicate in collection
Next Topic:[Acceleo] how to create a compiler with xtext and Acceleo ?
Goto Forum:
  


Current Time: Fri May 24 08:19:17 EDT 2013

Powered by FUDForum. Page generated in 0.06440 seconds