Hi Karsten,
thank you so much for your help.
Yes I integrated the eclipse maven plugin and found that in my own project
all the oaw packages on the old version 4.1.2. I checked out all spring
cartrige projects and worked through the pom dependencies.
The strange thing is:
There are only 2 ways of oaw packages into my project:
--------------------------------------------------------------------------------------------------
1. Parent dependency:
<parent>
<groupId>org.fornax.cartridges</groupId>
<artifactId>fornax-cartridges-uml2-spring-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
Spring parent seems to be migrated in this form:
<?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. The toolsupport plugin:
<plugin>
<groupId>org.fornax.toolsupport</groupId>
<artifactId>fornax-oaw-m2-plugin</artifactId>
<version>2.0.0</version>
<dependencies>
<dependency>
<groupId>org.fornax.cartridges</groupId>
<artifactId>
fornax-cartridges-uml2-spring-generator
</artifactId>
<version>${parent.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run-workflow</goal>
</goals>
</execution>
</executions>
</plugin>
Which is using the spring generator of version = parent version =
1.0.0-SNAPSHOT.
The pom of spring generator has no dependencies at all, only the parent
relationship to the spring parent again.
All in one i don't understand how can the old oaw version come to my
classpath, but eclipse is definitelly showing it.
The current error if i start buiding my project is:
[INFO] [fornax-oaw-m2:run-workflow {execution: default}]
[INFO] oAW Maven2 Plugin V2.0.0
0 INFO WorkflowRunner -
--------------------------------------------------------------------------------------
89 INFO WorkflowRunner - openArchitectureWare 4.2.0, Build
200709162219NGT
90 INFO WorkflowRunner - (c) 2005-2007 openarchitectureware.org and
contributors
90 INFO WorkflowRunner -
--------------------------------------------------------------------------------------
91 INFO WorkflowRunner - running workflow: workflow.oaw
91 INFO WorkflowRunner -
1810 ERROR VisitorCreator - java.lang.RuntimeException:
java.lang.NullPointerException
1821 ERROR VisitorCreator - java.lang.RuntimeException:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform
1833 ERROR VisitorCreator - java.lang.RuntimeException:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform
1835 ERROR VisitorCreator - java.lang.RuntimeException:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform
1840 ERROR VisitorCreator - java.lang.RuntimeException:
java.lang.NullPointerException
1842 ERROR VisitorCreator - java.lang.RuntimeException:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform
1893 ERROR WorkflowRunner - Error creating instance of type
'org.openarchitectureware.uml2.Setup' : java.lang.NullPointerException [bean
bean class='org.openarchitectureware.uml2.Setup' in
org/fornax/cartridges/uml2/spring/spring.oaw:6]
1894 ERROR WorkflowRunner - Error creating instance of type
'org.openarchitectureware.uml2.profile.ProfileMetaModel' :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform [bean bean
class='org.openarchitectureware.uml2.profile.ProfileMetaModel'
id='mm_persistence_profile' in
org/fornax/cartridges/uml2/spring/spring.oaw:13]
1895 ERROR WorkflowRunner - Error creating instance of type
'org.openarchitectureware.uml2.profile.ProfileMetaModel' :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform [bean bean
class='org.openarchitectureware.uml2.profile.ProfileMetaModel'
id='mm_datatype_profile' in org/fornax/cartridges/uml2/spring/spring.oaw:16]
1895 ERROR WorkflowRunner - Error creating instance of type
'org.openarchitectureware.uml2.profile.ProfileMetaModel' :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform [bean bean
class='org.openarchitectureware.uml2.profile.ProfileMetaModel'
id='mm_spring_profile' in org/fornax/cartridges/uml2/spring/spring.oaw:19]
1896 ERROR WorkflowRunner - Error creating instance of type
'org.openarchitectureware.uml2.Setup' : java.lang.NullPointerException [bean
bean class='org.openarchitectureware.uml2.Setup' in
org/fornax/cartridges/uml2/hibernate/hibernate.oaw:42]
1896 ERROR WorkflowRunner - Error creating instance of type
'org.openarchitectureware.uml2.profile.ProfileMetaModel' :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
java.net.MalformedURLException: unknown protocol: platform [bean bean
class='org.openarchitectureware.uml2.profile.ProfileMetaModel'
id='mm_hibernate_profile' in
org/fornax/cartridges/uml2/hibernate/hibernate.oaw:49]
1896 ERROR WorkflowRunner - Workflow interrupted because of
configuration errors.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
Is this already the profile problem concerning the MagicDraw version 2.5
wich was disscussed in some threads before?
Thx again,
Denis
Karsten Thoms wrote:
>
> Must be a classpath issue.
>
> The AbstractWorkflowAdvice::weave() method has changed its signature
> after oAW 4.1.2. Therefore the XtendAdvice component had changed it,
> too. There seems to be a mix of 4.1.2 and 4.2 classes of the
> mentioned classes in the classpath. Check the signature of the weave
> () method in both classes.
>
> ~Karsten
>
> Am 13.11.2007 um 12:56 schrieb denis lutz:
>
>>
>> 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.checkCo
>> nfiguration(CompositeComponent.java:122)
>> at
>> org.openarchitectureware.workflow.container.CompositeComponent.checkCo
>> nfiguration(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.executeGoalWithLif
>> ecycle(DefaultLifecycleExecutor.java:480)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>> (DefaultLifecycleExecutor.java:459)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
>> leFailures(DefaultLifecycleExecutor.java:311)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
>> s(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
>>
>
>
> -------------------------------------------------------------------------
> 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
>
>
--
View this message in context:
http://www.nabble.com/Migration-of-Spring-Cartridge-to-OAW-4.2-tf4797350s17564.html#a13745487
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