Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Fornax mwe2 problem
Fornax mwe2 problem [message #808968] Tue, 28 February 2012 10:33 Go to next message
Markus Schindler is currently offline Markus SchindlerFriend
Messages: 30
Registered: July 2009
Member
Hi,

I got following error:

[INFO] --- fornax-oaw-m2-plugin:3.3.0:run-workflow (xtext) @ com.mycomp.client.soap.impl ---
[INFO] Fornax Model Workflow Maven2 Plugin V3.3.0
[ERROR] mf.mwe2.launch.runtime.Mwe2Launcher - [XtextLinkingDiagnostic: null:11 Couldn't resolve reference to JvmIdentifiableElement 'component'.,
XtextLinkingDiagnostic: null:16 Couldn't resolve reference to JvmIdentifiableElement 'path'., XtextLinkingDiagnostic: null:19 Couldn't resolve
reference to JvmIdentifiableElement 'register'., XtextLinkingDiagnostic: null:20 Couldn't resolve reference to JvmIdentifiableElement 'loadResource'.,
XtextLinkingDiagnostic: null:21 Couldn't resolve reference to JvmIdentifiableElement 'slot'., XtextLinkingDiagnostic: null:25 Couldn't resolve
reference to JvmIdentifiableElement 'component'., XtextLinkingDiagnostic: null:26 Couldn't resolve reference to JvmIdentifiableElement 'register'.,
XtextLinkingDiagnostic: null:27 Couldn't resolve reference to JvmIdentifiableElement 'slot'., XtextLinkingDiagnostic: null:28 Couldn't resolve
reference to JvmIdentifiableElement 'outlet'., XtextLinkingDiagnostic: null:29 Couldn't resolve reference to JvmIdentifiableElement 'path'.]
[ERROR] java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:11 Couldn't resolve reference to JvmIdentifiableElement 'component'.,
XtextLinkingDiagnostic: null:16 Couldn't resolve reference to JvmIdentifiableElement 'path'., XtextLinkingDiagnostic: null:19 Couldn't resolve
reference to JvmIdentifiableElement 'register'., XtextLinkingDiagnostic: null:20 Couldn't resolve reference to JvmIdentifiableElement 'loadResource'.,
XtextLinkingDiagnostic: null:21 Couldn't resolve reference to JvmIdentifiableElement 'slot'., XtextLinkingDiagnostic: null:25 Couldn't resolve
reference to JvmIdentifiableElement 'component'., XtextLinkingDiagnostic: null:26 Couldn't resolve reference to JvmIdentifiableElement 'register'.,
XtextLinkingDiagnostic: null:27 Couldn't resolve reference to JvmIdentifiableElement 'slot'., XtextLinkingDiagnostic: null:28 Couldn't resolve
reference to JvmIdentifiableElement 'outlet'., XtextLinkingDiagnostic: null:29 Couldn't resolve reference to JvmIdentifiableElement 'path'.]
[ERROR] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:83)
[ERROR] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
[ERROR] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:76)
[ERROR] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
[ERROR] ExitStatusException occurred while running workflow: Java returned: 1


My pom looks like this:

<dependencies>
<dependency>
<groupId>org.eclipse.xtend2</groupId>
<artifactId>org.eclipse.xtend2.lib</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
<version>2.2.0.v201112121625</version>
</dependency>
<dependency>
<groupId>com.mycomp.client.soap.generate</groupId>
<artifactId>com.mycomp.xtext.webservice</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.plugins</groupId>
<artifactId>org.eclipse.emf.mwe2.launch</artifactId>
<version>2.0.0.v201106070634</version>
</dependency>
</dependencies>

<repositories>
<repository>
<id>xtend</id>
<url>http://build.eclipse.org/common/xtend/maven/</url>
</repository>
<repository>
<id>fornax.repository</id>
<name>Fornax Repository</name>
<url>http://www.fornax-platform.org/m2/repository</url>
</repository>
<repository>
<id>xtext</id>
<url>http://build.eclipse.org/common/xtext/maven/maven-snapshot/final/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>fornax.plugin.repository</id>
<name>Fornax Plugin Repository</name>
<url>http://www.fornax-platform.org/m2/repository</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<!--pluginRepository>
<id>xtend</id>
<url>http://build.eclipse.org/common/xtend/maven/</url>
</pluginRepository-->
<pluginRepository>
<id>xtext</id>
<url>http://build.eclipse.org/common/xtext/maven/maven-snapshot/final/</url>
</pluginRepository>
</pluginRepositories>

<build>
<plugins>
<plugin>
<groupId>org.fornax.toolsupport</groupId>
<artifactId>fornax-oaw-m2-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>xtext</id>
<phase>generate-sources</phase>
<goals>
<goal>run-workflow</goal>
</goals>
<configuration>
<workflowEngine>mwe2</workflowEngine>
<workflowDescriptor>com.mycomp.xtext.webservice.generator.WebserviceDescriptionGeneratorMWE</workflowDescriptor>
<timestampFileName>xtext-generator.timestamp</timestampFileName>
<properties>
<targetDir>${basedir}/src-gen</targetDir>
<modelPath>${basedir}/model</modelPath>
</properties>
<!--jvmSettings>
<fork>true</fork>
</jvmSettings-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>



I have it running on my local machine (maybe I have allready some special jars in my local maven repository), but it doesn't work on any other machine
in my company.
Anybody have some hints? Maybe kthoms?

Regards,
Markus
Re: Fornax mwe2 problem [message #809187 is a reply to message #808968] Tue, 28 February 2012 15:24 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Looks like some libraries are missing as dependencies, e.g. mwe.core, mwe.utils, mwe2.runtime, .... The dependency list is rather short.

"Couldn't resolve reference to" indicates scoping problems in the MWE2 workflow, which usually means that classes are not found.

Regards,
~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Fornax mwe2 problem [message #809205 is a reply to message #809187] Tue, 28 February 2012 15:42 Go to previous message
Markus Schindler is currently offline Markus SchindlerFriend
Messages: 30
Registered: July 2009
Member
Hi Karsten,

thanks for your reply.
I got it now running on my jenkins! Yeah! (After 48 "red" attempts it goes green ;-)

Here are my dependencies, maybe they will helpful for someone else:

<dependencies>
<dependency>
<groupId>com.mycompany.client.soap.generate</groupId>
<artifactId>com.mycompany.xtext.webservice</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.eclipse.xtend2</groupId>
<artifactId>org.eclipse.xtend2.lib</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xtend2.lib</artifactId>
<version>2.2.0.v201112121625</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>com.google.inject</artifactId>
<version>3.0.0.no_aop</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
<version>2.2.0.v201112121625</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.mwe2.launch</artifactId>
<version>2.2.0.v201112121737</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.mwe.core</artifactId>
<version>1.2.1.v201112120646</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>codegen</artifactId>
<version>2.3.0-v200706262000</version>
</dependency>
</dependencies>

<repositories>
<repository>
<id>maven.eclipse.org</id>
<url>http://maven.eclipse.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>xtend</id>
<url>http://build.eclipse.org/common/xtend/maven/</url>
</repository>
<repository>
<id>xtext</id>
<url>http://build.eclipse.org/common/xtext/maven/maven-snapshot/final/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>fornax.plugin.repository</id>
<name>Fornax Plugin Repository</name>
<url>http://www.fornax-platform.org/m2/repository</url>
</pluginRepository>
<pluginRepository>
<id>xtend</id>
<url>http://build.eclipse.org/common/xtend/maven/</url>
</pluginRepository>
</pluginRepositories>


Regards,
Markus

Am 28.02.2012 16:24, schrieb Karsten Thoms:
> Looks like some libraries are missing as dependencies, e.g. mwe.core, mwe.utils, mwe2.runtime, .... The dependency list is rather short.
>
> "Couldn't resolve reference to" indicates scoping problems in the MWE2 workflow, which usually means that classes are not found.
>
> Regards,
> ~Karsten
Previous Topic:inlined cross-references
Next Topic:custom content assist help needed
Goto Forum:
  


Current Time: Tue Apr 16 23:51:12 GMT 2024

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

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

Back to the top