Skip to main content



      Home
Home » Archived » MOFScript » Executing Problem with Java API
Executing Problem with Java API [message #568182] Tue, 18 August 2009 04:09 Go to next message
Eclipse UserFriend
Hi,

I'm defining some textual tranformations for models based on the
Jadex metamodel. It works fine! However, when I try to
integrate my MOFScript transformation in a Java environment, using the
example given in the MOFScript User Guide, it doesn't work.

I took these errors;
Parsing result: 213 errors
: Error: MTTParseError: Illegal/unknown context: jadex, line: 649, column: 0
: Error: MTTParseError: Can't find feature 'name' for type 'Agent'., line: 9, column: 12
: Error: MTTParseError: Can't find feature 'name' for type 'Agent'., line: 15, column: 30
: Error: MTTParseError: Can't find feature 'package' for type 'Agent'., line: 17, column: 33
: Error: MTTParseError: Can't find feature 'description' for type 'Agent'., line: 19, column: 37
: Error: MTTParseError: Can't find feature 'propertyfile' for type 'Agent'., line: 21, column: 37

.............................

I think there is a problem with metamodel setting.
Can you help me, your code doesn't work in the guide.

Best regards,
Bekir
Re: Executing Problem with Java API [message #568211 is a reply to message #568182] Wed, 19 August 2009 05:10 Go to previous message
Eclipse UserFriend
Hello Bekir,

I am not sure this will solve the problem, but you could try adding a line
in the beginning of your code like:

JadexModelFactory _jadexModelFactory = JadexModelFactory.eINSTANCE;


If "Jadex"ModelFactory is the correct name in your case I dont know. Just
add the factory for your model.

Cheers,
G
Previous Topic:Contribution for MOFScript project
Next Topic:Executing Problem with Java API
Goto Forum:
  


Current Time: Wed Jul 23 14:49:21 EDT 2025

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

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

Back to the top