Home » Modeling » M2T (model-to-text transformation) » [XPAND] Reader does not find UML Profile Package
[XPAND] Reader does not find UML Profile Package [message #500071] |
Tue, 24 November 2009 20:31 |
Andre Albert Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hello,
lately i upgraded from oaw4.2 to eclipse.xpand
Previously i used XMIReader to read in my model. Doing so, referenced profiles could be found.
Due to that XmiReader becomes deprecated, i updated to org.eclipse.emf.mwe.utils.Reader
Unfortunately, the workflow Reader now throws:
3439 ERROR WorkflowRunner - org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found. (file:../ground-core-model/Models/GenModel.uml, 138, 102)
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found. (file:../ground-core-model/Models/GenModel.uml, 138, 102)
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:54)
at org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java: 37)
[...]
while reading in the uml2 3.0.0 model
the model looks like:
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ProjectProfile="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xsi:schemaLocation="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0 ../Profiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw">
<uml:Model xmi:id="idModel" name="GenModelModel">
[...]
</uml:Model>
</xmi:XMI>
With my old version, this snippet runs. How can i configure the workflow (or the Reader) so that it will find my profile with its stereotypes
Greetings
Andre
|
|
|
Re: [XPAND] Reader does not find UML Profile Package [message #500074 is a reply to message #500071] |
Tue, 24 November 2009 20:49 |
|
This is a multi-part message in MIME format.
--------------080904050705090309070702
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Andre Albert schrieb:
> Hello,
>
> lately i upgraded from oaw4.2 to eclipse.xpand
>
> Previously i used XMIReader to read in my model. Doing so, referenced
> profiles could be found.
>
> Due to that XmiReader becomes deprecated, i updated to
> org.eclipse.emf.mwe.utils.Reader
>
> Unfortunately, the workflow Reader now throws:
>
> 3439 ERROR WorkflowRunner -
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found.
> (file:../ground-core-model/Models/GenModel.uml, 138, 102)
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
> ticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0' not found.
> (file:../ground-core-model/Models/GenModel.uml, 138, 102)
> 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:54)
> at org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java: 37)
> [...]
>
> while reading in the uml2 3.0.0 model
>
> the model looks like:
>
> <xmi:XMI xmi:version="2.1"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ProjectProfile="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"
> xsi:schemaLocation="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0
> ../Profiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw">
> <uml:Model xmi:id="idModel" name="GenModelModel">
> [...]
> </uml:Model>
> </xmi:XMI>
>
>
> With my old version, this snippet runs. How can i configure the
> workflow (or the Reader) so that it will find my profile with its
> stereotypes
>
> Greetings
> Andre
Andre,
does it run with the (deprecated) XMI Reader under eclipse.xpand ?
ekke
--
ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
--------------080904050705090309070702
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andre Albert schrieb:
<blockquote cite="mid:hehfri$7di$1@build.eclipse.org" type="cite">Hello,
<br>
<br>
lately i upgraded from oaw4.2 to eclipse.xpand
<br>
<br>
Previously i used XMIReader to read in my model. Doing so, referenced
profiles could be found.
<br>
<br>
Due to that XmiReader becomes deprecated, i updated to
org.eclipse.emf.mwe.utils.Reader
<br>
<br>
Unfortunately, the workflow Reader now throws:
<br>
<br>
3439 ERROR WorkflowRunner -
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'<a class="moz-txt-link-freetext" href="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0">http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0</a>' not found.
(<a class="moz-txt-link-freetext" href="file:../ground-core-model/Models/GenModel.uml">file:../ground-core-model/Models/GenModel.uml </a>, 138, 102)
<br>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos
ticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'<a class="moz-txt-link-freetext" href="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0">http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0</a>' not found.
(<a class="moz-txt-link-freetext" href="file:../ground-core-model/Models/GenModel.uml">file:../ground-core-model/Models/GenModel.uml </a>, 138, 102)
<br>
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe
mandLoadException(ResourceSetImpl.java:315)
<br>
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo
adHelper(ResourceSetImpl.java:274)
<br>
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou
rce(ResourceSetImpl.java:397)
<br>
at org.eclipse.emf.mwe.utils.Reader.load(Reader.java:54)
<br>
at org.eclipse.emf.mwe.utils.Reader.invokeInternal(Reader.java:
37)
<br>
[...]
<br>
<br>
while reading in the uml2 3.0.0 model
<br>
<br>
the model looks like:
<br>
<br>
<xmi:XMI xmi:version="2.1"
xmlns:xmi=<a class="moz-txt-link-rfc2396E" href="http://schema.omg.org/spec/XMI/2.1">"http://schema.omg.org/spec/XMI/2.1"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xmlns:ProjectProfile=<a class="moz-txt-link-rfc2396E" href="http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0">"http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0"</a>
xmlns:ecore=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/emf/2002/Ecore">"http://www.eclipse.org/emf/2002/Ecore"</a>
xmlns:uml=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/uml2/3.0.0/UML">"http://www.eclipse.org/uml2/3.0.0/UML"</a>
xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href=" http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0../P rofiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw">"http:///schemas/ProjectProfile/_vRv0UNhREd6yfIJDveo6Kw/0
.../Profiles/project.profile.uml#_vRv0UthREd6yfIJDveo6Kw"</a >>
<br>
<uml:Model xmi:id="idModel" name="GenModelModel">
<br>
[...]
<br>
</uml:Model>
<br>
</xmi:XMI>
<br>
<br>
<br>
With my old version, this snippet runs. How can i configure the
workflow (or the Reader) so that it will find my profile with its
stereotypes
<br>
<br>
Greetings
<br>
Andre
<br>
</blockquote>
Andre,<br>
<br>
does it run with the (deprecated) XMI Reader under eclipse.xpand ?<br>
<br>
ekke<br>
<br>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0cm;"> <font ,="" color="#808080"
face="Verdana, sans-serif"> <font size="4">ekke (ekkehard gentz)<br>
</font> <font size="3"> independent software-architect<br>
senior erp-consultant<br>
</font> <font size="2">eclipse | osgi | equinox | mdsd | oaw | emf |
uml<br>
max-josefs-platz 30, D-83022 rosenheim, germany<br>
<a class="moz-txt-link-freetext" href="mailto:ekke@ekkes-corner.org">mailto:ekke@ekkes-corner.org</a><br>
homepage (de): <a class="moz-txt-link-freetext" href="http://gentz-software.de">http://gentz-software.de</a><br>
blog (en): <a class="moz-txt-link-freetext" href="http://ekkes-corner.org">http://ekkes-corner.org</a><br>
twitter: @ekkescorner<br>
skype: ekkes-corner<br>
</font> <font size="1"> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID:
DE189929490<br>
</font> </font> </p>
</div>
</body>
</html>
--------------080904050705090309070702--
ekke
independent software architect
blog: http://ekkes-corner.org
twitter: @ekkescorner
|
|
| | |
Goto Forum:
Current Time: Fri Oct 04 03:26:17 GMT 2024
Powered by FUDForum. Page generated in 0.04296 seconds
|