Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Launch UML2OWL on Helios
icon9.gif  [ATL] Launch UML2OWL on Helios [message #659426] Sun, 13 March 2011 19:19 Go to next message
Sergey Metcherin is currently offline Sergey MetcherinFriend
Messages: 14
Registered: February 2011
Junior Member
Good day, colleagues?

How can I launch ATL UML2OWL on Helios (launch build.xml script)? I've installed fresh Eclipse modelling tools and tried:

1) Intall AM3 from sources but still got errors in ANT script
2) Edit build.xml script but I have runtime errors like this:
Model UML has already been registered
Cannot set feature owlUniverse to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@a3e365 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@19b78d4 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), 
...
 inter-model references are forbidden. Configure launching options to allow them.


Has anyone had positive experience with UML2OWL and Helios? How can I get it work?

UPDATE - When I've updated the compability of UML2OWL project, I had anoter error message when running build.xml:

loadModels:
[atl.loadModel] Loading model UML from http://www.eclipse.org/uml2/2.0.0/UML
[atl.loadModel] Loading model OWL from file:/C:\Users\Senya\Workspace_32_SR2\UML2OWL\OWL\OWL.ecore
[atl.loadModel] Loading model XML from file:/C:\Users\Senya\Workspace_32_SR2\UML2OWL\AMMACore\XML.ecore

transfo:
[atl.loadModel] Loading model umlModel from file:/C:\Users\Senya\Workspace_32_SR2\UML2OWL\Samples\UMLModels\Museum.uml
  [atl.launch] Launching transformation C:\Users\Senya\Workspace_32_SR2\UML2OWL\UML2OWL.asm using EMF-specific VM
Model UML has already been registered
Cannot set feature owlUniverse to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@117843d (eClass: org.eclipse.emf.ecore.impl.EClassImpl@764091 
...
(name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)),  inter-model references are forbidden. Configure launching options to allow them.
  [atl.launch] Transformation executed in 0,037s
[atl.saveModel] Saving model owlModel to file:/C:\Users\Senya\Workspace_32_SR2\UML2OWL\Samples\OWLModels\Museum-OWL.ecore
  [atl.launch] Launching transformation C:\Users\Senya\Workspace_32_SR2\UML2OWL\OWL\XmlSyntax\OWL2XML.asm using EMF-specific VM
Model OWL has already been registered
  [atl.launch] Transformation executed in 0,037s
[atl.saveModel] Saving model xmlModel to file:/E:\UML2OWL\Samples\OWLFiles\Museum.owl
[atl.saveModel] org.eclipse.m2m.atl.core.ATLCoreException: org.eclipse.m2m.atl.core.extractor xml not found, check the spelling or register it manually
[atl.saveModel] 	at org.eclipse.m2m.atl.core.service.CoreService.getExtractor(CoreService.java:272)
[atl.saveModel] 	at org.eclipse.m2m.atl.core.ant.tasks.SaveModelTask.execute(SaveModelTask.java:105)
[atl.saveModel] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[atl.saveModel] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[atl.saveModel] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] 	at java.lang.reflect.Method.invoke(Unknown Source)
[atl.saveModel] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[atl.saveModel] 	at org.apache.tools.ant.Task.perform(Task.java:348)
[atl.saveModel] 	at org.apache.tools.ant.Target.execute(Target.java:357)
[atl.saveModel] 	at org.apache.tools.ant.Target.performTasks(Target.java:385)
[atl.saveModel] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[atl.saveModel] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[atl.saveModel] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[atl.saveModel] 	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[atl.saveModel] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[atl.saveModel] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
[atl.saveModel] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
[atl.saveModel] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[atl.saveModel] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[atl.saveModel] 	at java.lang.reflect.Method.invoke(Unknown Source)
[atl.saveModel] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[atl.saveModel] 	at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:298)
[atl.saveModel] 	at java.lang.Thread.run(Unknown Source)

BUILD FAILED
C:\Users\Senya\Workspace_32_SR2\UML2OWL\build.xml:26: Unable to load extractor xml


How can I load extractor xml?

[Updated on: Sun, 13 March 2011 20:09]

Report message to a moderator

Re: [ATL] Launch UML2OWL on Helios [message #756954 is a reply to message #659426] Tue, 15 November 2011 17:25 Go to previous message
Mauricio Rojas is currently offline Mauricio RojasFriend
Messages: 1
Registered: November 2011
Junior Member
Did you got it to work? I got the same exception and I dont know how to solve it
Previous Topic:[QVTo] Cast EObject to Meta-Model Type
Next Topic:[ATL] Problems with EMF-Specific VM and Regular VM
Goto Forum:
  


Current Time: Tue Apr 23 10:55:19 GMT 2024

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

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

Back to the top