1

I constantly get:

mf.mwe2.launch.runtime.Mwe2Launcher  - Couldn't find module x

error though the x.mwe2 file exists. I have enabled the xtext nature to the project and added related modules.

here's the .mwe2 file:

module com.ford.modelling.workflow.abcd

Workflow {
    component = SayHello {
        message = "hello"
    }   
}

What might be the problem? (a folder named src-gen already exists)

Aykut Kllic
  • 898
  • 9
  • 14

3 Answers3

1

Had the same problem. The exception however occurs in the Mwe2Runner, not the Mwe2Launcher. The Mwe2Runner tried to load the mwe2 file as a resource and produces that error if it can't find it, although the Mwe2Launcher can.

Anyway, solution is to register your src-dir as a resource-dir by adding the following to your pom.xml

<build>
...
<resources>
  <resource>
    <directory>src</directory>
    <excludes>
      <exclude>**/*.java</exclude>
    </excludes>
  </resource>
</resources>
...
</build>
franz
  • 177
  • 7
1

please make sure that the mwe2 file is placed in a java source folder and that you did a clean build on the project the mwe2 file is contained.

Christian Dietrich
  • 11,778
  • 4
  • 24
  • 32
  • I now am able to compile it. It strangely compiles once and then never updates. So whatever I change isn't applied. Very strange. Maybe something about the compiler. – Aykut Kllic Nov 12 '11 at 15:24
0

OK. I've found the problem (though not a solution yet).

Enabling scala nature halts the build process of MWE2. Can't figure out why but this is what happens. I remove the Scala nature and everything works.

Aykut Kllic
  • 898
  • 9
  • 14