Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xbase.genmodel is unmapped while running .mwe2 workflow
Xbase.genmodel is unmapped while running .mwe2 workflow [message #1770242] Wed, 09 August 2017 10:16 Go to next message
Stefano Valentini is currently offline Stefano ValentiniFriend
Messages: 5
Registered: August 2017
Junior Member
Hi, I've an Xtext project and I'm trying to lunch the mwe2 workflow through an external command line .jar using

Mwe2Launcher.main(new String[]{"path/to/file.mwe2"});


and this is the output I get:

0    [main] INFO  text.xtext.generator.XtextGenerator  - Initializing Xtext generator
8    [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
68   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering project org.xtext.webdsl at 'file:/Users/valent0ne/Projects/EclipseWorkspace/org.xtext.webdsl.parent/org.xtext.webdsl/'
68   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering project org.xtext.webdsl.tests at 'file:/Users/valent0ne/Projects/EclipseWorkspace/org.xtext.webdsl.parent/org.xtext.webdsl.tests/'
69   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering project org.xtext.webdsl.ide at 'file:/Users/valent0ne/Projects/EclipseWorkspace/org.xtext.webdsl.parent/org.xtext.webdsl.ide/'
69   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering project org.xtext.webdsl.ui at 'file:/Users/valent0ne/Projects/EclipseWorkspace/org.xtext.webdsl.parent/org.xtext.webdsl.ui/'
69   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering project org.xtext.webdsl.ui.tests at 'file:/Users/valent0ne/Projects/EclipseWorkspace/org.xtext.webdsl.parent/org.xtext.webdsl.ui.tests/'
69   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering project org.xtext.webdsl.web at 'file:/Users/valent0ne/Projects/EclipseWorkspace/org.xtext.webdsl.parent/org.xtext.webdsl.web/'
78   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Using resourceSet registry. The registered Packages will not be registered in the global EPackage.Registry.INSTANCE!
100  [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Problems running workflow org.xtext.webdsl.GenerateWebDsl: java.io.IOException: The path '/org.eclipse.xtext.xbase/model/Xbase.genmodel' is unmapped
java.lang.RuntimeException: Problems running workflow org.xtext.webdsl.GenerateWebDsl: java.io.IOException: The path '/org.eclipse.xtext.xbase/model/Xbase.genmodel' is unmapped
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:104)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
...


if I run the mwe2 workflow by right clicking on the .xtext file inside eclipse I get no errors.

This is the content of the .mwe2 file I'm using:

module org.xtext.webdsl.GenerateWebDsl

import org.eclipse.xtext.xtext.generator.*
import org.eclipse.xtext.xtext.generator.model.project.*

var rootPath = ".."

Workflow {
	
	component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "org.xtext.webdsl"
				rootPath = rootPath
				runtimeTest = {
					enabled = true
				}
				eclipsePlugin = {
					enabled = true
				}
				eclipsePluginTest = {
					enabled = true
				}
				web = {
					enabled = true
				}
				createEclipseMetaData = true
			}
			code = {
				encoding = "UTF-8"
				lineDelimiter = "\n"
				fileHeader = "/*\n * generated by Xtext \${version}\n */"
			}
		}
		language = StandardLanguage {
			name = "org.xtext.webdsl.WebDsl"
			fileExtensions = "webdsl"
            
			serializer = {
				generateStub = false
			}
			validator = {
				composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
			}
		}
	}
}


Re: Xbase.genmodel is unmapped while running .mwe2 workflow [message #1770389 is a reply to message #1770242] Thu, 10 August 2017 16:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12321
Registered: July 2009
Senior Member
hi,

are you sure all required stuff is on the classpath of that main?


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xbase.genmodel is unmapped while running .mwe2 workflow [message #1770576 is a reply to message #1770389] Mon, 14 August 2017 15:47 Go to previous message
Stefano Valentini is currently offline Stefano ValentiniFriend
Messages: 5
Registered: August 2017
Junior Member
I think so :D
By the way I managed to solve using maven, thanks anyway.
Previous Topic:Execution order of different Validators
Next Topic:XText 2.12 blocking issues with Large Grammars
Goto Forum:
  


Current Time: Wed Oct 17 02:48:24 GMT 2018

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

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

Back to the top