Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner(referenced libraries )
XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #518866] |
Fri, 05 March 2010 10:41 |
HansBj Messages: 18 Registered: March 2010 |
Junior Member |
|
|
Hi,
I'm trying to get the example of the XText "tutorial" (getting started) running, but there seem to be problems with the referenced libraries (why arent they included by the wizard??):
When I start the mwe file by "Run as MWE Workflow" I get the above error:
"cant find main class org.eclipse.emf.mwe.core.WorkflowRunner"
I already reference library
org.eclipse.emf.mwe.core_0.7.2.v200908120417.jar
which includes the WorkflowRunner.
So why is it not found?
Can anybody give me a hint?
Thanks,
HansBjörn.
PS: Forget about it!
The error message was very misleading. In fact many other libs are missing, I wonder why the wizard has not added any one of them...
[Updated on: Fri, 05 March 2010 13:20] Report message to a moderator
|
|
| |
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #518974 is a reply to message #518925] |
Fri, 05 March 2010 15:27 |
HansBj Messages: 18 Registered: March 2010 |
Junior Member |
|
|
Hi Sebastian,
I downloaded eclipse-SDK-3.5.1-xtext-0.7.2-win32.zip
from itemis and unzipped it under
C:\Programme\eclipse
This does not seem to be very deep...
The installation was just to extract the files from the zip, so what errors could I get from any log?
Now that I added a 24 (!) libraries one after the manually I do not get any syntax errors.
By invoking the Workflowrunner the logs says this:
0 INFO WorkflowRunner - ------------------------------------------------------------ --------------------------
16 INFO WorkflowRunner - EMF Modeling Workflow Engine 0.7.2, Build v200908120417
16 INFO WorkflowRunner - (c) 2005-2009 openarchitectureware.org and contributors
16 INFO WorkflowRunner - ------------------------------------------------------------ --------------------------
16 INFO WorkflowRunner - running workflow: C:/Dokumente und Einstellungen/profi/workspace/org.xtext.example.start/src/or g/xtext/example/GenerateEntities.mwe
16 INFO WorkflowRunner -
391 INFO StandaloneSetup - Registering platform uri 'C:\Dokumente und Einstellungen\profi\workspace'
1578 INFO CompositeComponent - DirectoryCleaner: cleaning directory '../org.xtext.example.start/src-gen'
1578 INFO DirectoryCleaner - Cleaning C:\Dokumente und Einstellungen\profi\workspace\org.xtext.example.start\..\org .xtext.example.start\src-gen
1578 INFO CompositeComponent - DirectoryCleaner: cleaning directory '../org.xtext.example.start.ui/src-gen'
1578 INFO DirectoryCleaner - Cleaning C:\Dokumente und Einstellungen\profi\workspace\org.xtext.example.start\..\org .xtext.example.start.ui\src-gen
1578 INFO CompositeComponent - Generator
1641 INFO LanguageConfig - generating infrastructure for org.xtext.example.Entities with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, AntlrDelegatingFragment, JavaValidatorFragment, JavaScopingFragment, FormatterFragment, LabelProviderFragment, TransformerFragment, OutlineNodeAdapterFactoryFragment, JavaBasedContentAssistFragment, DelegatingGeneratorFragment
4000 INFO JavaValidatorFragment - executing generate for org.eclipse.xtext.generator.validation.JavaValidatorFragment
4438 ERROR Generator - Unable to load extension file : org::eclipse::xtend::util::stdlib::io
EvaluationException : Unable to load extension file : org::eclipse::xtend::util::stdlib::io
org::eclipse::xtext::generator::ModuleExtensions.ext[128,26] on line 5 'simpleMethodName(key.type)'
org::eclipse::xtext::generator::GuiceModuleRt.xpt[2085,20] on line 71 'bindMethodName(this)'
org::eclipse::xtext::generator::GuiceModuleRt.xpt[1414,37] on line 45 'EXPAND bindingMethod FOREACH bindings'
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:56)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uateInternal(OperationCall.java:66)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:48)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uateInternal(OperationCall.java:60)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:48)
at org.eclipse.internal.xtend.xtend.ast.ExpressionExtensionStat ement.evaluateInternal2(ExpressionExtensionStatement.java:58 )
at org.eclipse.internal.xtend.xtend.ast.ExpressionExtensionStat ement.evaluateInternal(ExpressionExtensionStatement.java:47)
at org.eclipse.internal.xtend.xtend.ast.AbstractExtension.evalu ate(AbstractExtension.java:162)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uate(OperationCall.java:343)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uateInternal(OperationCall.java:76)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:48)
at org.eclipse.internal.xpand2.ast.ExpressionStatement.evaluate Internal(ExpressionStatement.java:45)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate( AbstractDefinition.java:175)
at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:195)
at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:145)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.internal.xpand2.ast.FileStatement.evaluateIntern al(FileStatement.java:83)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate( AbstractDefinition.java:175)
at org.eclipse.xpand2.XpandFacade.evaluate2(XpandFacade.java:71 )
at org.eclipse.xpand2.XpandFacade.evaluate(XpandFacade.java:45)
at org.eclipse.xtext.generator.Generator.generateGuiceModuleRt( Generator.java:248)
at org.eclipse.xtext.generator.Generator.invokeInternal(Generat or.java:82)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:124)
at org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
at org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
4438 INFO WorkflowRunner - workflow completed in 2860ms!
Now I really dont know how to get an yfurther...
regards, HB.
|
|
| |
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #519005 is a reply to message #518975] |
Fri, 05 March 2010 11:40 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Am 05.03.10 16:31, schrieb HansBj:
> Hi,
>
> I just tried again to create a XText Project using the wizard.
> It does not include any libraries at all!
> The first error I get is that the reference in the grammar file to
> org.eclipse.xtext.common.Terminals
> cannot be solved.
>
> regards, HB.
Hi Hans Björn,
I just removed the dust from an old windows box, downloaded the Xtext
distro and launched Eclipse and created an empty workspace in c:/eclipse/ws.
After choosing
New -> Project .. -> Xtext Project
I end up with 3 projects in my workspace. They define the required deps,
e.g. the runtime project (org.xtext.example.mydsl by default) contains a
manifest.mf with the following entries:
Require-Bundle: org.eclipse.xtext,
org.eclipse.xtext.generator;resolution:=optional,
de.itemis.xtext.antlr;resolution:=optional,
org.apache.commons.logging;resolution:=optional,
org.eclipse.emf.codegen.ecore;resolution:=optional,
org.eclipse.xtext.log4j;resolution:=optional,
org.eclipse.emf.mwe.utils;resolution:=optional,
org.eclipse.emf.mwe.core;resolution:=optional,
com.ibm.icu;resolution:=optional,
org.eclipse.xtext.xtend;resolution:=optional
Can you confirm this behaviour on your machine?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
| | |
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #519231 is a reply to message #519027] |
Mon, 08 March 2010 08:14 |
HansBj Messages: 18 Registered: March 2010 |
Junior Member |
|
|
Hello Sebastian,
I just tried again from the beginning.
I created a new XText-Project without any modifications.
I get the three projects and I found the plug-in dependencies you mentioned.
But Mydsl.xtext shows an error in line one:
"grammar org.xtext.example.MyDsl with org.eclipse.xtext.common.Terminals"
Terminals cannot be resolved.
The MANIFEST of the start-package also has an error message for require-bundle:
org.eclipse.xtext also cannot be resolved.
What do I have to do next to get GenerateMydsl.mwe run as workflow?
regards,
HB.
[Updated on: Mon, 08 March 2010 08:16] Report message to a moderator
|
|
| | | | | | |
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622275 is a reply to message #518925] |
Fri, 05 March 2010 15:27 |
HansBj Messages: 18 Registered: March 2010 |
Junior Member |
|
|
Hi Sebastian,
I downloaded eclipse-SDK-3.5.1-xtext-0.7.2-win32.zip
from itemis and unzipped it under
C:\Programme\eclipse
This does not seem to be very deep...
The installation was just to extract the files from the zip, so what errors could I get from any log?
Now that I added a 24 (!) libraries one after the manually I do not get any syntax errors.
By invoking the Workflowrunner the logs says this:
0 INFO WorkflowRunner - ------------------------------------------------------------ --------------------------
16 INFO WorkflowRunner - EMF Modeling Workflow Engine 0.7.2, Build v200908120417
16 INFO WorkflowRunner - (c) 2005-2009 openarchitectureware.org and contributors
16 INFO WorkflowRunner - ------------------------------------------------------------ --------------------------
16 INFO WorkflowRunner - running workflow: C:/Dokumente und Einstellungen/profi/workspace/org.xtext.example.start/src/or g/xtext/example/GenerateEntities.mwe
16 INFO WorkflowRunner -
391 INFO StandaloneSetup - Registering platform uri 'C:\Dokumente und Einstellungen\profi\workspace'
1578 INFO CompositeComponent - DirectoryCleaner: cleaning directory '../org.xtext.example.start/src-gen'
1578 INFO DirectoryCleaner - Cleaning C:\Dokumente und Einstellungen\profi\workspace\org.xtext.example.start\..\org .xtext.example.start\src-gen
1578 INFO CompositeComponent - DirectoryCleaner: cleaning directory '../org.xtext.example.start.ui/src-gen'
1578 INFO DirectoryCleaner - Cleaning C:\Dokumente und Einstellungen\profi\workspace\org.xtext.example.start\..\org .xtext.example.start.ui\src-gen
1578 INFO CompositeComponent - Generator
1641 INFO LanguageConfig - generating infrastructure for org.xtext.example.Entities with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, AntlrDelegatingFragment, JavaValidatorFragment, JavaScopingFragment, FormatterFragment, LabelProviderFragment, TransformerFragment, OutlineNodeAdapterFactoryFragment, JavaBasedContentAssistFragment, DelegatingGeneratorFragment
4000 INFO JavaValidatorFragment - executing generate for org.eclipse.xtext.generator.validation.JavaValidatorFragment
4438 ERROR Generator - Unable to load extension file : org::eclipse::xtend::util::stdlib::io
EvaluationException : Unable to load extension file : org::eclipse::xtend::util::stdlib::io
org::eclipse::xtext::generator::ModuleExtensions.ext[128,26] on line 5 'simpleMethodName(key.type)'
org::eclipse::xtext::generator::GuiceModuleRt.xpt[2085,20] on line 71 'bindMethodName(this)'
org::eclipse::xtext::generator::GuiceModuleRt.xpt[1414,37] on line 45 'EXPAND bindingMethod FOREACH bindings'
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:56)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uateInternal(OperationCall.java:66)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:48)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uateInternal(OperationCall.java:60)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:48)
at org.eclipse.internal.xtend.xtend.ast.ExpressionExtensionStat ement.evaluateInternal2(ExpressionExtensionStatement.java:58 )
at org.eclipse.internal.xtend.xtend.ast.ExpressionExtensionStat ement.evaluateInternal(ExpressionExtensionStatement.java:47)
at org.eclipse.internal.xtend.xtend.ast.AbstractExtension.evalu ate(AbstractExtension.java:162)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uate(OperationCall.java:343)
at org.eclipse.internal.xtend.expression.ast.OperationCall.eval uateInternal(OperationCall.java:76)
at org.eclipse.internal.xtend.expression.ast.Expression.evaluat e(Expression.java:48)
at org.eclipse.internal.xpand2.ast.ExpressionStatement.evaluate Internal(ExpressionStatement.java:45)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate( AbstractDefinition.java:175)
at org.eclipse.internal.xpand2.ast.ExpandStatement.invokeDefini tion(ExpandStatement.java:195)
at org.eclipse.internal.xpand2.ast.ExpandStatement.evaluateInte rnal(ExpandStatement.java:145)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.internal.xpand2.ast.FileStatement.evaluateIntern al(FileStatement.java:83)
at org.eclipse.internal.xpand2.ast.Statement.evaluate(Statement .java:39)
at org.eclipse.internal.xpand2.ast.AbstractDefinition.evaluate( AbstractDefinition.java:175)
at org.eclipse.xpand2.XpandFacade.evaluate2(XpandFacade.java:71 )
at org.eclipse.xpand2.XpandFacade.evaluate(XpandFacade.java:45)
at org.eclipse.xtext.generator.Generator.generateGuiceModuleRt( Generator.java:248)
at org.eclipse.xtext.generator.Generator.invokeInternal(Generat or.java:82)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:124)
at org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
at org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
at org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
4438 INFO WorkflowRunner - workflow completed in 2860ms!
Now I really dont know how to get an yfurther...
regards, HB.
|
|
| | | | | |
Goto Forum:
Current Time: Sun Sep 22 22:58:19 GMT 2024
Powered by FUDForum. Page generated in 0.05709 seconds
|