Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [MWE2]: "Couldn't find module ..." error message
[MWE2]: "Couldn't find module ..." error message [message #542597] Fri, 25 June 2010 11:57 Go to next message
Abdull is currently offline AbdullFriend
Messages: 32
Registered: May 2010
Member
I have a MWE2 file called "DspTiCWorkflow.mwe2"

Here is its contents
module de.mycompany.meta.workflow.DspTiCWorkflow

Workflow {
	
	bean = org.eclipse.emf.mwe.utils.StandaloneSetup {
		registerEcoreFile = "pimm_01.ecore"
		registerEcoreFile = "ti_c_psmm_01.ecore"
		// platformUri ?
	}
	
	component = org.eclipse.emf.mwe.utils.Reader {
		uri = "two_fir_two_mux_two_button_03.pimm_01"
		modelSlot = "model_pim"
		firstElementOnly = true
	}

	component = org.eclipse.emf.mwe.utils.Writer {
		modelSlot = "model_pim"
		uri = "out/my_output.pimm_01"
	}
	
}



When I run this workflow, I get the following error message:
0    [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Couldn't find module with name 'de.mycompany.meta.workflow.DspTiCWorkflow'.
java.lang.IllegalArgumentException: Couldn't find module with name 'de.mycompany.meta.workflow.DspTiCWorkflow'.
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:63)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)


Any ideas?
Thanks, Abdull
Re: [MWE2]: "Couldn't find module ..." error message [message #542612 is a reply to message #542597] Fri, 25 June 2010 12:40 Go to previous messageGo to next message
Abdull is currently offline AbdullFriend
Messages: 32
Registered: May 2010
Member
This is closed.

I noticed that I still had Helios RC4 MWE2 plug-ins on my Java build path, while already using the final Helios - possibly causing conflicts by using two plug-in versions at the same time.
Removing those old Helios RC4 plug-ins solved my problem.

Abdull
Re: [MWE2]: "Couldn't find module ..." error message [message #637233 is a reply to message #542597] Thu, 04 November 2010 16:48 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
This same problem occurs if the src folder which (indirectly) contains the mwe2 file is not present in your project properties : java build path : source.
Re: [MWE2]: "Couldn't find module ..." error message [message #659336 is a reply to message #637233] Sat, 12 March 2011 13:19 Go to previous message
Martin Trummer is currently offline Martin TrummerFriend
Messages: 15
Registered: February 2011
Junior Member
I also got this error when the directory which dontained my workflow file was not listed as a maven resources dir

e.g. the location of the worflow in the project:
src\main\tmf\workflow\GenerateEnum.mwe2

this had been added as a src dir:
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
<!--				<version>1.5</version>-->
				<executions>
					<execution>
						<id>add-source</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>${basedir}/src/main/tmf/</source>
...

but not as a resource dir.

Adding the resource fixed the problem:
	<build>
		<resources>
			<resource>
				<directory>src/main/tmf/</directory>
			</resource>
...


Previous Topic:Old Console bug fix
Next Topic:I need to do an interpreter in xtext
Goto Forum:
  


Current Time: Fri Apr 19 18:40:36 GMT 2024

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

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

Back to the top