Fornax-Platform
Forum

Novice attempts with MWE failing

View: New views
10 Messages — Rating Filter:   Alert me  

Novice attempts with MWE failing

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am trying to run my first attempts with MWE and the Fornax cartridges. The M2 plugin fails with the following message:

  java.lang.IllegalArgumentException: Cannot load or instantiate class
                org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
        at org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
        at org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)

I am assuming that I am missing a dependency in the POM. However, It is unclear to me what that might be. My POM looks like follows.

Thanks,

Jochen


<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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>demo</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.fornax.openarchitectureware</groupId>
      <artifactId>oaw-uml2</artifactId>
      <version>4.3.1</version>
      <type>pom</type>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.fornax.toolsupport</groupId>
        <artifactId>fornax-oaw-m2-plugin</artifactId>
        <version>3.0.1</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>run-workflow</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <workflowEngine>mwe</workflowEngine>
          <checkResources>
            <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
          </checkResources>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>fornax.repository</id>
      <name>Fornax Repository</name>
      <url>http://www.fornax-platform.org/m2/repository</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>
  </pluginRepositories>
</project>

Re: Novice attempts with MWE failing

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ping?

Jochen Wiedmann wrote:
Hi,

I am trying to run my first attempts with MWE and the Fornax cartridges. The M2 plugin fails with the following message:

  java.lang.IllegalArgumentException: Cannot load or instantiate class
                org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
        at org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
        at org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)

I am assuming that I am missing a dependency in the POM. However, It is unclear to me what that might be. My POM looks like follows.

Thanks,

Jochen


<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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>demo</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.fornax.openarchitectureware</groupId>
      <artifactId>oaw-uml2</artifactId>
      <version>4.3.1</version>
      <type>pom</type>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.fornax.toolsupport</groupId>
        <artifactId>fornax-oaw-m2-plugin</artifactId>
        <version>3.0.1</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>run-workflow</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <workflowEngine>mwe</workflowEngine>
          <checkResources>
            <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
          </checkResources>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>fornax.repository</id>
      <name>Fornax Repository</name>
      <url>http://www.fornax-platform.org/m2/repository</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>
  </pluginRepositories>
</project>

Questions on DDL Generation

by AbhilashJohn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
I am using sculptor 1.6 and am facing some issues with the DDL Generation.
I am using the "inverse" relation between two entities. My database type is defined via db.product=oracle.
Now, here is the problem. In the generated ddl for oracle, I am getting the resultant ddl as

CREATE TABLE PERSON (
  ID NUMBER(20) NOT NULL,
  ENTITYID VARCHAR2(100) NOT NULL,
  FIRSTNAME VARCHAR2(100),
  CONTACT_INDEX INTEGER(10),
  CLIENT NUMBER(20)          
);

Running this in Oracle leads to problem, as the integer field doesn’t have a length.
Is there a way to overcome this problem?
I have given the following values in the sculptor-generator

db.oracle.type.PositiveInteger=NUMBER
db.oracle.type.Integer=NUMBER
db.oracle.type.Number=NUMBER
db.oracle.length.Integer=10
db.oracle.type.int=NUMBER
db.oracle.type.BigInteger=NUMBER
db.oracle.type.discriminatorType.INTEGER=NUMBER
db.oracle.length.discriminatorType.INTEGER=5


Regards
Abhilash
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Parent Message unknown Questions on DDL Generation

by AbhilashJohn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

(Resending as there seem to be some problem with the thread view in the Nabble site http://www.nabble.com/Fornax-Platform-f17564.html)

 

 

Hi All,

I am using sculptor 1.6 and am facing some issues with the DDL Generation.

I am using the "inverse" relation between two entities. My database type is defined via db.product=oracle.

Now, here is the problem. In the generated ddl for oracle, I am getting the resultant ddl as

 

CREATE TABLE PERSON (

  ID NUMBER(20) NOT NULL,

  ENTITYID VARCHAR2(100) NOT NULL,

  FIRSTNAME VARCHAR2(100),

  CONTACT_INDEX INTEGER(10),

  CLIENT NUMBER(20)         

);

 

Running this in SQL in Oracle ( specifically the CONTACT_INDEX INTEGER(10) part ) leads to problem, as the integer field shouldn’t have a length attribute, for oracle.

Is there a way to overcome this problem?

I have given the following values in the sculptor-generator.properties

 

db.oracle.type.PositiveInteger=NUMBER

db.oracle.type.Integer=NUMBER

db.oracle.type.Number=NUMBER

db.oracle.length.Integer=10

db.oracle.type.int=NUMBER

db.oracle.type.BigInteger=NUMBER

db.oracle.type.discriminatorType.INTEGER=NUMBER

db.oracle.length.discriminatorType.INTEGER=5

 

 

Regards,

Abhilash John


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: Questions on DDL Generation

by Patrik Nordwall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Re: Novice attempts with MWE failing

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ping? Is there any forum, or mailing list, which is more appropriate for the question?



Ping?

Jochen Wiedmann wrote:
Hi,

I am trying to run my first attempts with MWE and the Fornax cartridges. The M2 plugin fails with the following message:

  java.lang.IllegalArgumentException: Cannot load or instantiate class
                org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
        at org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
        at org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)

I am assuming that I am missing a dependency in the POM. However, It is unclear to me what that might be. My POM looks like follows.

Thanks,

Jochen


<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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>demo</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.fornax.openarchitectureware</groupId>
      <artifactId>oaw-uml2</artifactId>
      <version>4.3.1</version>
      <type>pom</type>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.fornax.toolsupport</groupId>
        <artifactId>fornax-oaw-m2-plugin</artifactId>
        <version>3.0.1</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>run-workflow</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <workflowEngine>mwe</workflowEngine>
          <checkResources>
            <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
          </checkResources>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>fornax.repository</id>
      <name>Fornax Repository</name>
      <url>http://www.fornax-platform.org/m2/repository</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>
  </pluginRepositories>
</project>


Re: Novice attempts with MWE failing

by Patrik Nordwall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the Sculptor team we are working on migration to oaw5, but we have not started with the maven integration yet. Sorry.

Maybe you can find something in Karsten's blog
or Eclipse Community forums.

/Patrik


Ping? Is there any forum, or mailing list, which is more appropriate for the question?


Jochen Wiedmann wrote:
Ping?

Jochen Wiedmann wrote:
Hi,

I am trying to run my first attempts with MWE and the Fornax cartridges. The M2 plugin fails with the following message:

  java.lang.IllegalArgumentException: Cannot load or instantiate class
                org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
        at org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
        at org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)

I am assuming that I am missing a dependency in the POM. However, It is unclear to me what that might be. My POM looks like follows.

Thanks,

Jochen


<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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>demo</groupId>
  <artifactId>demo</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.fornax.openarchitectureware</groupId>
      <artifactId>oaw-uml2</artifactId>
      <version>4.3.1</version>
      <type>pom</type>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.fornax.toolsupport</groupId>
        <artifactId>fornax-oaw-m2-plugin</artifactId>
        <version>3.0.1</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>run-workflow</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <workflowEngine>mwe</workflowEngine>
          <checkResources>
            <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
          </checkResources>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>fornax.repository</id>
      <name>Fornax Repository</name>
      <url>http://www.fornax-platform.org/m2/repository</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>
  </pluginRepositories>
</project>

Re: Novice attempts with MWE failing

by Karsten Thoms :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jochen,

you are declaring a dependency to oaw4 uml2, which would require to use oAW4's workflow engine (declared by <workflowEngine>oaw</workflowEngine>, or just leaving that out). If you want to use MWE as workflow engine you would also migrate the projects and using M2T Xpand dependencies only. Don't mix both.

Best,
~Karsten


----- Original Message -----
From: "Jochen Wiedmann" <jochen.wiedmann@...>
To: fornax-developer@...
Sent: Monday, October 19, 2009 11:53:01 AM (GMT+0100) Europe/Berlin
Subject: Re: [Fornax-developer] Novice attempts with MWE failing


Ping? Is there any forum, or mailing list, which is more appropriate for the
question?



Jochen Wiedmann wrote:

>
> Ping?
>
>
> Jochen Wiedmann wrote:
>>
>> Hi,
>>
>> I am trying to run my first attempts with MWE and the Fornax cartridges.
>> The M2 plugin fails with the following message:
>>
>>   java.lang.IllegalArgumentException: Cannot load or instantiate class
>>                 org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
>> at
>> org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
>> at
>> org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)
>>
>> I am assuming that I am missing a dependency in the POM. However, It is
>> unclear to me what that might be. My POM looks like follows.
>>
>> Thanks,
>>
>> Jochen
>>
>>
>> <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">
>>   <modelVersion>4.0.0</modelVersion>
>>   <groupId>demo</groupId>
>>   <artifactId>demo</artifactId>
>>   <version>0.0.1-SNAPSHOT</version>
>>
>>   <dependencies>
>>     <dependency>
>>       <groupId>org.fornax.openarchitectureware</groupId>
>>       <artifactId>oaw-uml2</artifactId>
>>       <version>4.3.1</version>
>>       <type>pom</type>
>>       <scope>runtime</scope>
>>     </dependency>
>>   </dependencies>
>>
>>   <build>
>>     <plugins>
>>       <plugin>
>>         <groupId>org.fornax.toolsupport</groupId>
>>         <artifactId>fornax-oaw-m2-plugin</artifactId>
>>         <version>3.0.1</version>
>>         <executions>
>>           <execution>
>>             <phase>generate-sources</phase>
>>             <goals>
>>               <goal>run-workflow</goal>
>>             </goals>
>>           </execution>
>>         </executions>
>>         <configuration>
>>           <workflowEngine>mwe</workflowEngine>
>>           <checkResources>
>>            
>> <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
>>           </checkResources>
>>         </configuration>
>>       </plugin>
>>     </plugins>
>>   </build>
>>
>>   <repositories>
>>     <repository>
>>       <id>fornax.repository</id>
>>       <name>Fornax Repository</name>
>>       <url>http://www.fornax-platform.org/m2/repository</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>
>>   </pluginRepositories>
>> </project>
>>
>>
>
>

--
View this message in context: http://www.nabble.com/Novice-attempts-with-MWE-failing-tp25771216s17564p25955715.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: Novice attempts with MWE failing

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks for the reply, Karsten.

Question for me is which way to go. My actual intention is to use the Hibernate cartridge. Is that possible with MWE? (In which case I'd need to identify the corresponding thing in M2T?) Otherwise, I've got do go back to oAW?

Jochen



Karsten Thoms wrote:
Jochen,

you are declaring a dependency to oaw4 uml2, which would require to use oAW4's workflow engine (declared by <workflowEngine>oaw</workflowEngine>, or just leaving that out). If you want to use MWE as workflow engine you would also migrate the projects and using M2T Xpand dependencies only. Don't mix both.

Best,
~Karsten


----- Original Message -----
From: "Jochen Wiedmann" <jochen.wiedmann@gmail.com>
To: fornax-developer@lists.sourceforge.net
Sent: Monday, October 19, 2009 11:53:01 AM (GMT+0100) Europe/Berlin
Subject: Re: [Fornax-developer] Novice attempts with MWE failing


Ping? Is there any forum, or mailing list, which is more appropriate for the
question?



Jochen Wiedmann wrote:
>
> Ping?
>
>
> Jochen Wiedmann wrote:
>>
>> Hi,
>>
>> I am trying to run my first attempts with MWE and the Fornax cartridges.
>> The M2 plugin fails with the following message:
>>
>>   java.lang.IllegalArgumentException: Cannot load or instantiate class
>>                 org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
>> at
>> org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
>> at
>> org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)
>>
>> I am assuming that I am missing a dependency in the POM. However, It is
>> unclear to me what that might be. My POM looks like follows.
>>
>> Thanks,
>>
>> Jochen
>>
>>
>> <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">
>>   <modelVersion>4.0.0</modelVersion>
>>   <groupId>demo</groupId>
>>   <artifactId>demo</artifactId>
>>   <version>0.0.1-SNAPSHOT</version>
>>
>>   <dependencies>
>>     <dependency>
>>       <groupId>org.fornax.openarchitectureware</groupId>
>>       <artifactId>oaw-uml2</artifactId>
>>       <version>4.3.1</version>
>>       <type>pom</type>
>>       <scope>runtime</scope>
>>     </dependency>
>>   </dependencies>
>>
>>   <build>
>>     <plugins>
>>       <plugin>
>>         <groupId>org.fornax.toolsupport</groupId>
>>         <artifactId>fornax-oaw-m2-plugin</artifactId>
>>         <version>3.0.1</version>
>>         <executions>
>>           <execution>
>>             <phase>generate-sources</phase>
>>             <goals>
>>               <goal>run-workflow</goal>
>>             </goals>
>>           </execution>
>>         </executions>
>>         <configuration>
>>           <workflowEngine>mwe</workflowEngine>
>>           <checkResources>
>>            
>> <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
>>           </checkResources>
>>         </configuration>
>>       </plugin>
>>     </plugins>
>>   </build>
>>
>>   <repositories>
>>     <repository>
>>       <id>fornax.repository</id>
>>       <name>Fornax Repository</name>
>>       <url>http://www.fornax-platform.org/m2/repository</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>
>>   </pluginRepositories>
>> </project>
>>
>>
>
>

--
View this message in context: http://www.nabble.com/Novice-attempts-with-MWE-failing-tp25771216s17564p25955715.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: Novice attempts with MWE failing

by Karsten Thoms :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The Hibernate cartridge is implemented with oAW 4 and thus not compatible. In fact I'm using it in my current project with oAW 5, this required some tweaks I roughly described on my blog here:
http://kthoms.wordpress.com/2009/07/16/oaw-4-migration-with-cartridge-adaption/

I would not recommend doing so really for you and rather stick with oAW 4 here, at least for the cartridge usage.

~Karsten




----- Original Message -----
From: "Jochen Wiedmann" <jochen.wiedmann@...>
To: fornax-developer@...
Sent: Monday, October 19, 2009 1:20:03 PM (GMT+0100) Europe/Berlin
Subject: Re: [Fornax-developer] Novice attempts with MWE failing



Thanks for the reply, Karsten.

Question for me is which way to go. My actual intention is to use the
Hibernate cartridge. Is that possible with MWE? (In which case I'd need to
identify the corresponding thing in M2T?) Otherwise, I've got do go back to
oAW?

Jochen




Karsten Thoms wrote:

>
> Jochen,
>
> you are declaring a dependency to oaw4 uml2, which would require to use
> oAW4's workflow engine (declared by <workflowEngine>oaw</workflowEngine>,
> or just leaving that out). If you want to use MWE as workflow engine you
> would also migrate the projects and using M2T Xpand dependencies only.
> Don't mix both.
>
> Best,
> ~Karsten
>
>
> ----- Original Message -----
> From: "Jochen Wiedmann" <jochen.wiedmann@...>
> To: fornax-developer@...
> Sent: Monday, October 19, 2009 11:53:01 AM (GMT+0100) Europe/Berlin
> Subject: Re: [Fornax-developer] Novice attempts with MWE failing
>
>
> Ping? Is there any forum, or mailing list, which is more appropriate for
> the
> question?
>
>
>
> Jochen Wiedmann wrote:
>>
>> Ping?
>>
>>
>> Jochen Wiedmann wrote:
>>>
>>> Hi,
>>>
>>> I am trying to run my first attempts with MWE and the Fornax cartridges.
>>> The M2 plugin fails with the following message:
>>>
>>>   java.lang.IllegalArgumentException: Cannot load or instantiate class
>>>                 org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
>>> at
>>> org.fornax.toolsupport.maven2.MojoWorkflowRunner.setProgressMonitorClass(MojoWorkflowRunner.java:82)
>>> at
>>> org.fornax.toolsupport.maven2.WorkflowMojo.execute(WorkflowMojo.java:273)
>>>
>>> I am assuming that I am missing a dependency in the POM. However, It is
>>> unclear to me what that might be. My POM looks like follows.
>>>
>>> Thanks,
>>>
>>> Jochen
>>>
>>>
>>> <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">
>>>   <modelVersion>4.0.0</modelVersion>
>>>   <groupId>demo</groupId>
>>>   <artifactId>demo</artifactId>
>>>   <version>0.0.1-SNAPSHOT</version>
>>>
>>>   <dependencies>
>>>     <dependency>
>>>       <groupId>org.fornax.openarchitectureware</groupId>
>>>       <artifactId>oaw-uml2</artifactId>
>>>       <version>4.3.1</version>
>>>       <type>pom</type>
>>>       <scope>runtime</scope>
>>>     </dependency>
>>>   </dependencies>
>>>
>>>   <build>
>>>     <plugins>
>>>       <plugin>
>>>         <groupId>org.fornax.toolsupport</groupId>
>>>         <artifactId>fornax-oaw-m2-plugin</artifactId>
>>>         <version>3.0.1</version>
>>>         <executions>
>>>           <execution>
>>>             <phase>generate-sources</phase>
>>>             <goals>
>>>               <goal>run-workflow</goal>
>>>             </goals>
>>>           </execution>
>>>         </executions>
>>>         <configuration>
>>>           <workflowEngine>mwe</workflowEngine>
>>>           <checkResources>
>>>            
>>> <checkResource>src/main/resources/models/mymodel.uml2</checkResource>
>>>           </checkResources>
>>>         </configuration>
>>>       </plugin>
>>>     </plugins>
>>>   </build>
>>>
>>>   <repositories>
>>>     <repository>
>>>       <id>fornax.repository</id>
>>>       <name>Fornax Repository</name>
>>>       <url>http://www.fornax-platform.org/m2/repository</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>
>>>   </pluginRepositories>
>>> </project>
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Novice-attempts-with-MWE-failing-tp25771216s17564p25955715.html
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@...
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@...
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>
>

--
View this message in context: http://www.nabble.com/Novice-attempts-with-MWE-failing-tp25771216s17564p25956640.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer