Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Migration OAW4 to OAW5
Migration OAW4 to OAW5 [message #837114] Thu, 05 April 2012 09:34 Go to next message
Ricardo Ben Amor is currently offline Ricardo Ben AmorFriend
Messages: 51
Registered: March 2012
Member
Hi,

I'm trying to move my project from OAW4 to OAW5 but i have some problem that i can't resolve for now.

Just to clarify the goal of my project. I'm using XPAND to generate a configuration file. And i take the information for this file from an XML and XSD file.

The project work properly in openarchitecture 3.4.1.

Information about my MWE file :


<workflow>
	
    <!-- Read the arxml file and save it in the OriginalAutosarModel slot-->
    <component class="org.eclipse.xtend.typesystem.xsd.XMLReader">
        <modelSlot value="Autosar"/>
        <uri value="Autosar.arxml"/>
        <metaModel id="mm" class="org.eclipse.xtend.typesystem.xsd.XSDMetaModel">
            <schemaFile value="autosar.xsd"/>
            <registerPackagesGlobally value="true" />
        </metaModel>
    </component>
	
	<!--Start the XPAND WorkFlow to generate the Swc Information files-->
	<component class="org.eclipse.xpand2.Generator">
        <metaModel idRef="mm"/>
        <expand value="template::GenerationCode FOR Autosar"/>
        <outlet path="src-gen"/>
    </component>
	
</workflow>


Information about my XPT file :

«IMPORT autosar» 
«DEFINE GenerationCode FOR Autosar» «""-» 

«FILE "Test.c"» «""-» 

«ENDFILE-» 
«ENDDEFINE»



And to finish, the errors are the following :


5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Users/r.de-miranda/workspace/OAW.project/src/OAW_start.mwe
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: 
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Class not found: 'org.eclipse.xtend.typesystem.xsd.XMLReader'(Element: bean component class='org.eclipse.xtend.typesystem.xsd.XMLReader' in C:/Users/r.de-miranda/workspace/OAW.project/src/OAW_start.mwe:4; Reported by: -UNKNOWN-)
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No getter or adder method for property 'modelSlot' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element: modelSlot='Autosar' in C:/Users/r.de-miranda/workspace/OAW.project/src/OAW_start.mwe:5; Reported by: -UNKNOWN-)
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No getter or adder method for property 'uri' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found.(Element: uri='Autosar.arxml' in C:/Users/r.de-miranda/workspace/OAW.project/src/OAW_start.mwe:6; Reported by: -UNKNOWN-)
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: No getter or adder method for property 'metaModel' in clazz 'org.eclipse.emf.mwe.core.WorkflowComponent' found. Forgot to customize?(Element: bean metaModel class='org.eclipse.xtend.typesystem.xsd.XSDMetaModel' id='mm' in C:/Users/r.de-miranda/workspace/OAW.project/src/OAW_start.mwe:7; Reported by: -UNKNOWN-)
5 avr. 2012 11:29:31 org.eclipse.emf.mwe.core.WorkflowRunner prepare
GRAVE: Workflow interrupted because of configuration errors.




Thank you in advance,

Regards,
Re: Migration OAW4 to OAW5 [message #837116 is a reply to message #837114] Thu, 05 April 2012 09:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

are you sure you classpath is sufficient. make sure you have a dependency to org.eclipse.xtend.typesystem.xsd

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Migration OAW4 to OAW5 [message #837126 is a reply to message #837116] Thu, 05 April 2012 09:49 Go to previous messageGo to next message
Ricardo Ben Amor is currently offline Ricardo Ben AmorFriend
Messages: 51
Registered: March 2012
Member
Hi,

And thanks for you reply.

Could you say me where i can know if i have access to it?


For the classpath, i think it's sufficient because it's works ine OAW4. I just modify the name like the example in Eclipse Help Documentation
Re: Migration OAW4 to OAW5 [message #837127 is a reply to message #837126] Thu, 05 April 2012 09:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
open the manifest.mf file and add it there in the dependencies tab under required plug-ins

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Migration OAW4 to OAW5 [message #837135 is a reply to message #837127] Thu, 05 April 2012 10:02 Go to previous messageGo to next message
Ricardo Ben Amor is currently offline Ricardo Ben AmorFriend
Messages: 51
Registered: March 2012
Member
Okay i had the plug in XSD but now there another errors.

Have you already receive this type of error?

5 avr. 2012 11:54:51 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
5 avr. 2012 11:54:51 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
5 avr. 2012 11:54:51 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
5 avr. 2012 11:54:51 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
5 avr. 2012 11:54:51 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Users/r.de-miranda/workspace/OAW.project/src/OAW_start.mwe
5 avr. 2012 11:54:51 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: 
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/emf/mwe/utils/AbstractEMFWorkflowComponent
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$000(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$000(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at org.eclipse.emf.mwe.internal.core.MWEPlugin.loadClass(MWEPlugin.java:75)
	at org.eclipse.emf.mwe.core.resources.ResourceLoaderDefaultImpl.tryLoadClass(ResourceLoaderDefaultImpl.java:38)
	at org.eclipse.emf.mwe.core.resources.AbstractResourceLoader.loadClass(AbstractResourceLoader.java:37)
	at org.eclipse.emf.mwe.core.resources.ResourceLoaderDefaultImpl.loadClass(ResourceLoaderDefaultImpl.java:28)
	at org.eclipse.emf.mwe.internal.core.ast.util.VisitorAnalyzer.visitComponentAST(VisitorAnalyzer.java:67)
	at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
	at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
	at org.eclipse.emf.mwe.internal.core.ast.util.VisitorAnalyzer.visitComponentAST(VisitorAnalyzer.java:82)
	at org.eclipse.emf.mwe.internal.core.ast.util.VisitorBase.visit(VisitorBase.java:37)
	at org.eclipse.emf.mwe.internal.core.ast.AbstractASTBase.accept(AbstractASTBase.java:44)
	at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:68)
	at org.eclipse.emf.mwe.internal.core.ast.util.WorkflowFactory.parseInitAndCreate(WorkflowFactory.java:51)
	at org.eclipse.emf.mwe.core.WorkflowRunner.prepare(WorkflowRunner.java:331)
	at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:289)
	at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
Caused by: java.lang.ClassNotFoundException: org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 41 more
Re: Migration OAW4 to OAW5 [message #837138 is a reply to message #837135] Thu, 05 April 2012 10:05 Go to previous messageGo to next message
Ricardo Ben Amor is currently offline Ricardo Ben AmorFriend
Messages: 51
Registered: March 2012
Member
I forgot this. (Image include)
Re: Migration OAW4 to OAW5 [message #837144 is a reply to message #837138] Thu, 05 April 2012 10:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

there are tons of dependencies missing. hard to tell what. you have to dig this out yourself.
best way to do this is to add a second plugin project and add everything as dependecy there so that you can
use Crtl+Shift+T to find in which plugin a needed class is located)

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Migration OAW4 to OAW5 [message #837202 is a reply to message #837144] Thu, 05 April 2012 11:42 Go to previous messageGo to next message
Ricardo Ben Amor is currently offline Ricardo Ben AmorFriend
Messages: 51
Registered: March 2012
Member
I have quote all my xpt file into Comment. I made the Update of JAVA JRE in my computer. And obviously there is always mistake with java :
Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/runtime/RecognitionException
	at org.eclipse.xpand2.Generator.getStatement(Generator.java:458)
	at org.eclipse.xpand2.Generator.checkConfigurationInternal(Generator.java:498)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:21)
	at org.eclipse.emf.mwe.core.container.CompositeComponent.checkConfiguration(CompositeComponent.java:139)
	at org.eclipse.emf.mwe.core.WorkflowRunner.prepare(WorkflowRunner.java:345)
	at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.java:289)
	at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:239)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.RecognitionException
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 7 more
Re: Migration OAW4 to OAW5 [message #837212 is a reply to message #837202] Thu, 05 April 2012 11:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

as i said before: the plugin containing RecognitionException is not on the classpath
=> first you have to find out that it is contained in org.antlr.runtime
=> then add org.antlr.runtime to the required plugins
repeat this procedure until you do not get any ClassNotFoundExceptions


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Migration OAW4 to OAW5 [message #837217 is a reply to message #837212] Thu, 05 April 2012 12:02 Go to previous message
Ricardo Ben Amor is currently offline Ricardo Ben AmorFriend
Messages: 51
Registered: March 2012
Member
Hi, it works. The dependencies plug in was the problem. Now my project work again Smile I hope the function "toInteger" went to be available ^^
Previous Topic:[acceleo]static uml profile registration
Next Topic:[XPAND] Convert real to integer
Goto Forum:
  


Current Time: Thu Apr 18 23:00:15 GMT 2024

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

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

Back to the top