Register EPackage probelm "Couldn't find an interface" [message #1743374] |
Wed, 14 September 2016 12:06  |
Eclipse User |
|
|
|
Hi All,
I am working with my own ecore transformed into xtext on this tutorial
https://eclipse.org/Xtext/documentation/101_five_minutes.html
I previously posted about dependencies and xtext references. Things build fine by when running the web server I get the error below
Problems instantiating module org.xtext.paasage.editor.GenerateCamel:
and also this
org.eclipse.emf.mwe.core.ConfigurationException: Couldn't find an interface eu.paasage.camel.CamelPackage
The epackage is registered in the workflow like
registerGeneratedEPackage = "eu.paasage.camel.CamelPackage"
and the source code for the CamelPackage class is in "src/eu/paasage./camel/CamelPackage"
I have tried many solutions suggested for this error but no luck, does anybody have any ideas?
Thanks,
Tom
PS if i remove the epackage registrations i get this error when running the web ui
Unresolved proxy http://www.paasage.eu/2015/06/camel#//CamelModel. Make sure the EPackage has been registered.
[Updated on: Wed, 14 September 2016 12:15] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Register EPackage probelm "Couldn't find an interface" [Solved] [message #1744189 is a reply to message #1743551] |
Fri, 23 September 2016 05:48  |
Eclipse User |
|
|
|
Hi Christian,
Thanks for the help. I have now got the Web UI for my DSL working. The advice above was great here are the main pointers (for anybody who else has similar problems) that I have taken from my experience.
1. Add the code above into the standalone section
1a. add standalone into the mwe workflow i.e.
Workflow {
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${rootPath}/.."
1b make sure the genmodel is referenced after that in the worlflow
registerGenModelFile = "platform:/resource/org.xtext.stfc.paasage/model/camel.genmodel"
/
1c also include the ecore model in the worklfow in the Standard language bit.
language = StandardLanguage {
name = "org.xtext.stfc.paasage.CamelEdit"
fileExtensions = "camel"
referencedResource = "platform:/resource/org.xtext.stfc.paasage/model/camel.ecore"
1d I commented out the fragmentAdapter lines
2. Add the org.eclipse.emf.mwe.core,\ to bundle
3. My DSL had lots of dependancies that caused the errors i.e. no proxy ...... They were added using Maven repos into the gradle buildscript (see below)
4. They brought in Antlr2 libs in the .m2 and ,gradle folders which I had to remove, they also brought in other dependencies which had to be resolved.
Thanks,
Tom
repositories {
maven { url "http://repository.ow2.org/nexus/content/repositories/snapshots" }
maven { url "http://jenkins.paasage.cetic.be/repository"}
maven { url "https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core"}
maven { url "http://repository.ow2.org/nexus/content/repositories/snapshots/"}
// maven { url "http://central.maven.org/maven2/org/"}
}
dependencies {
//compile group: 'antlr', name: 'antlr', version: '3.2'
compile group: 'org.ow2.paasage.mddb.cdo', name: 'camel-cdo-storage', version: '2016.4.0-SNAPSHOT'
compile group: 'org.ow2.paasage', name: 'camel', version: '2015.9.1-SNAPSHOT'
//compile group: 'org.eclipselabs', name: 'net4j.p2', version: '4.4.0'
compile group: 'org.eclipse.emf.cdo', name: 'common_4.3.0', version: 'v20140309-0644'
}
|
|
|
Powered by
FUDForum. Page generated in 0.29210 seconds