HI Guys,

with the great help of Darius i tried to migrate to OAW 4.2 within the
spring cartridge to use the new hibernate cartridge.
We made following steps:
1. Changes to pom.xml in the spring parent:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
        <parent>
                <artifactId>fornax-parent</artifactId>
                <groupId>org.fornax</groupId>
                <version>1.0.0-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <groupId>org.fornax.cartridges</groupId>
        <artifactId>fornax-cartridges-uml2-spring-parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>pom</packaging>
        <name>Fornax Spring Cartridge</name>
        <description>
                The parent project of the Fornax Spring Cartridge
        </description>

        <properties>
                <projectId>CSP</projectId>
                <projectPID></projectPID>
                <projectName>Spring2</projectName>
                <category>cartridges/uml2</category>
        </properties>
        
        <modules>
                <module>../fornax-cartridges-uml2-spring-core</module>
                <module>../fornax-cartridges-uml2-spring-generator</module>
                <module>../fornax-cartridges-uml2-spring-reference</module>
                <!-- 
module>../fornax-cartridges-uml2-spring-generics-reference</module
-->
        </modules>

        <dependencies>
                <dependency>
                        <groupId>org.fornax.openarchitectureware</groupId>
                        <artifactId>oaw-uml2</artifactId>
                        <version>4.2.0</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>org.eclipse.emf</groupId>
                        <artifactId>ecore</artifactId>
                        <version>2.3.0</version>
                </dependency>
                <dependency>
                        <groupId>org.fornax.cartridges</groupId>
                        
<artifactId>fornax-cartridges-uml2-javabasic-generator</artifactId>
                        <version>2.0.0</version>
                </dependency>           
                <dependency>
                        <groupId>org.fornax.cartridges</groupId>
                        
<artifactId>fornax-cartridges-uml2-hibernate-generator</artifactId>
                        <version>1.4.0</version>
                </dependency>
                <dependency>
                        <groupId>org.hybridlabs</groupId>
                        <artifactId>hybridlabs-beautifier</artifactId>
                        <version>1.1.4</version>
                </dependency>           
                <dependency> 
                        <groupId>commons-beanutils</groupId> 
                        <artifactId>commons-beanutils</artifactId> 
                        <version>1.7.0</version> 
                </dependency>
        </dependencies>
</project>
--------------------------------------------------------------------------------------------
2. Change to the pom.xml in
fornax-cartridges-uml2-spring-generics-reference:

                                <plugin>
                                <groupId>org.fornax.toolsupport</groupId>
                                <artifactId>fornax-oaw-m2-plugin</artifactId>
                                <version>LATEST</version>

instead of : <version>1.0.4</version>
--------------------------------------------------------------------------------------------

3. Change to the pom.xml of my projekt

                                <plugin>
                                <groupId>org.fornax.toolsupport</groupId>
                                <artifactId>fornax-oaw-m2-plugin</artifactId>
                                <version>LATEST</version>

instead of : <version>1.0.4</version>

and

removing this dependency
                <dependency>
                        <groupId>org.fornax.openarchitectureware</groupId>
                        <artifactId>oaw-check</artifactId>
                        <version>4.1.2</version>
                        <type>pom</type>
                </dependency>
--------------------------------------------------------------------------------------------
4. Changes to Spring.oaw, because of the new beautifier and outlet handling
in OAW 4.2

                <expand value="${expand.spring.expression}"/>
                <outlet><path value="${outlet.src.dir}"/>
                        <postprocessor 
class="oaw.xpand2.output.JavaBeautifier"/>
                </outlet>
                <outlet name="outletResDir" path="${outlet.res.dir}">
                        <postprocessor
class="org.openarchitectureware.xpand2.output.XmlBeautifier"/>
                </outlet>
                <outlet name="MAN_SRC"><path value="${outlet.src.once.dir}"/>   
        
                        <postprocessor 
class="oaw.xpand2.output.JavaBeautifier"/>
           </outlet>
                <outlet name="SRC_ONCE" path="${outlet.src.once.dir}" 
overwrite="false"/>
                        <postprocessor 
class="oaw.xpand2.output.JavaBeautifier"/>
           </outlet> 
                <outlet name="outletSrcOnceDir" path="${outlet.src.once.dir}"
overwrite="false"/>
                        <postprocessor 
class="oaw.xpand2.output.JavaBeautifier"/>
                </outlet>
                <outlet name="outletResOnceDir" path="${outlet.res.once.dir}"
overwrite="false"/>
                        <postprocessor
class="org.openarchitectureware.xpand2.output.XmlBeautifier"/>
                </outlet>
------------------------------------------------------------------------------------------------------
Now i have this error and dont know what to do:

[INFO] [fornax-oaw-m2:run-workflow {execution: default}]
[INFO] oAW Maven2 Plugin V2.0.0
0    INFO  WorkflowRunner     -
--------------------------------------------------------------------------------------
12   INFO  WorkflowRunner     - openArchitectureWare 4.2.0, Build
200709162219NGT
12   INFO  WorkflowRunner     - (c) 2005-2007 openarchitectureware.org and
contributors
13   INFO  WorkflowRunner     -
--------------------------------------------------------------------------------------
13   INFO  WorkflowRunner     - running workflow: workflow.oaw
14   INFO  WorkflowRunner     - 
56   WARN  WorkflowCustomization - Cannot resolve keyword class
org.eclipse.mwe.emf.Reader
57   WARN  WorkflowCustomization - Cannot resolve keyword class
org.eclipse.mwe.emf.Writer
61   WARN  WorkflowCustomization - Cannot resolve keyword class
org.openarchitectureware.xtend.XtendAdvice
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
org.openarchitectureware.workflow.ao.AbstractWorkflowAdvice.weave(Lorg/openarchitectureware/workflow/WorkflowComponent;Lorg/openarchitectureware/workflow/issues/Issues;)V
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.AbstractMethodError:
org.openarchitectureware.workflow.ao.AbstractWorkflowAdvice.weave(Lorg/openarchitectureware/workflow/WorkflowComponent;Lorg/openarchitectureware/workflow/issues/Issues;)V
        at
org.openarchitectureware.workflow.container.CompositeComponent.checkConfiguration(CompositeComponent.java:122)
        at
org.openarchitectureware.workflow.container.CompositeComponent.checkConfiguration(CompositeComponent.java:131)
        at
org.openarchitectureware.workflow.WorkflowRunner.prepare(WorkflowRunner.java:255)
        at
org.openarchitectureware.workflow.WorkflowRunner.run(WorkflowRunner.java:203)
        at
org.fornax.toolsupport.maven2.OawWorkflowMojo.execute(OawWorkflowMojo.java:287)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Any Ideas what the issue is?

Thx in advance, Denis
-- 
View this message in context: 
http://www.nabble.com/Migration-of-Spring-Cartridge-to-OAW-4.2-tf4797350s17564.html#a13724477
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to