Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Trouble resolving sub-packages via URI
Trouble resolving sub-packages via URI [message #621164] Mon, 20 July 2009 19:32
RefuX Zanzeebarr is currently offline RefuX ZanzeebarrFriend
Messages: 51
Registered: July 2009
Member
Not too sure if this is the correct newsgroup, EMF? EMFT?

Anyhoo:
I have an Ecore file with the root package called: First and a NS URI of
"http:///First.ecore"

In the ecore model there is a sub-package to First called Second, which
has a NS URL of "http:///First/Second.ecore"

I'm running a workflow to do a M2T transformation, however I get stuck
just trying to read in my XMI file, since it can't resolve the Package
"http:///First/Second.ecore". (stack below).

Any pointers would be great!


First2csv MWE:
<?xml version="1.0"?>
<workflow>
<property name="model" value="platform:/resource/first/test/uber.first" />
<property name="out" value="out" />

<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<platformUri value="../" />
<RegisterEcoreFile value="platform:/resource/first/model/First.ecore"/>
</bean>

<component class="org.eclipse.emf.mwe.utils.Reader">
<uri value="${model}" />
<modelSlot value="model" />
</component>

<component class="org.eclipse.xpand2.Generator">
<metaModel id="mm"
class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel " />
<expand value="first2csv::Main FOR model" />
<outlet path="${out}" />
</component>
</workflow>

STACK:
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.0, Build v200906160748
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
------------------------------------------------------------ --------------------------
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow:
C:/eclipse-workspaces/35/first/workflows/first2csv.mwe
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO:
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.utils.StandaloneSetup
setPlatformUri
INFO: Registering platform uri 'C:\eclipse-workspaces\35'
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.utils.StandaloneSetup
addRegisterEcoreFile
INFO: Adding dynamic EPackage 'http:///First.ecore' from
'platform:/resource/first/model/First.ecore'
Jul 20, 2009 2:17:28 PM
org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Reader: Loading model from platform:/resource/first/test/uber.first
Jul 20, 2009 2:17:28 PM org.eclipse.emf.mwe.core.WorkflowRunner
executeWorkflow
SEVERE: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
uri 'http:///First/Second.ecore' not found.
(platform:/resource/first/test/uber.first, 3, 60)
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http:///First/Second.ecore' not found.
(platform:/resource/first/test/uber.first, 3, 60)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
at org.eclipse.emf.mwe.utils.Reader.load(Reader.java:53)
at org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java: 36)
at
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invok e(AbstractWorkflowComponent.java:118)
at
org.eclipse.emf.mwe.core.container.CompositeComponent.intern alInvoke(CompositeComponent.java:101)
at
org.eclipse.emf.mwe.core.container.CompositeComponent.invoke (CompositeComponent.java:86)
at
org.eclipse.emf.mwe.core.WorkflowRunner.executeWorkflow(Work flowRunner.java:412)
at org.eclipse.emf.mwe.core.WorkflowRunner.run(WorkflowRunner.j ava:292)
at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner. java:239)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
with uri 'http:///First/Second.ecore' not found.
(platform:/resource/first/test/uber.first, 3, 60)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2421)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1299)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1468)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1019)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:1001)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:169)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.j ava:878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
... 9 more
Previous Topic:[EMF Tiger] Graphical Editor Support
Next Topic:Generating diagram code in build process
Goto Forum:
  


Current Time: Fri Mar 01 12:34:16 GMT 2024

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

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

Back to the top