Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #478150] Mon, 02 February 2009 18:18 Go to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26287
Registered: July 2009
Senior Member
Süleyman,

It looks like a question best asked on the UML2 newsgroups, which I've
added to the "to" list of the reply.


Süleyman Vurucu wrote:
> Hi @ All,
>
> I want generate a genmodel from a xmi(version 2.1) file. I create a
> metamodel with the modelling tool Enterprise Architect. After i exported
> the model to a xmi file i converted it to emf compatible format. This
> works very fine with Eclipse 3.3 and EMF 2.3.
>
> If I try to generate a genmodel with Eclipse 3.4 and EMF 2.4 then I get a
> Exception like this:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://schema.omg.org/spec/XMI/2.1' not found. (platform:/resource/
> EMFTets/test.xmi, 3, 76)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI
> (XMLHandler.java:2576)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x
> (XMLHandler.java:2407)
> .....
>
> Has the XMI namespace changed with EMF 2.4?
>
> Here is a sample xmi file that works pertty good with Eclipse 3.3 and EMF
> 2.3 but that doesn't work with EMF2.4 and Eclipse 3.4
>
> <?xml version="1.0" encoding="windows-1252"?>
> <xmi:XMI xmi:version="2.1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/
> UML" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/
> thecustomprofile/1.0">
> <xmi:Documentation exporter="Enterprise Architect"
> exporterVersion="6.5"/>
> <uml:Model xmi:type="uml:Model" name="EA_Model"
> visibility="public">
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_EFA15F3A_EB0C_44bf_BF50_FFECCB262307" name="Class Model"
> visibility="public">
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_C274A3C5_FD09_446c_BE25_2AD7887D4EE8" name="Auto"
> visibility="public">
> <generalization
> xmi:type="uml:Generalization"
> xmi:id="EAID_AD67C39E_E870_4f8e_AF31_E16C87D264A0"
> general="EAID_F955834A_3C22_434d_AB3E_17A21A6E1B9F"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_F955834A_3C22_434d_AB3E_17A21A6E1B9F" name="Fahrzeug"
> visibility="public"/>
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_9249C168_9B06_429f_ADE5_D23073BDAA90" name="System"
> visibility="public">
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_7AA9FCFA_0ECB_4f46_BB50_9BD6B0BA757E" name="Class1"
> visibility="public">
> <generalization
> xmi:type="uml:Generalization"
> xmi:id="EAID_E1044C21_0B79_4b6a_BBEF_22754E05F32A"
> general="EAID_C94C3038_96CC_4b28_AE5E_9C445BD527F0"/>
> </packagedElement>
> <packagedElement
> xmi:type="uml:Realization"
> xmi:id="EAID_0669F7DA_9249_42b9_9CEF_79D6886AA6A9" visibility="public"
> supplier="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B"
> realizingClassifier="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B "
> client="EAID_7AA9FCFA_0ECB_4f46_BB50_9BD6B0BA757E"/>
> <packagedElement
> xmi:type="uml:Association"
> xmi:id="EAID_5BFDBCB5_8852_42ce_B7A6_D7824A2274E8" visibility="public">
> <memberEnd
> xmi:idref="EAID_dstFDBCB5_8852_42ce_B7A6_D7824A2274E8"/>
> <ownedEnd xmi:type="uml:Property"
> xmi:id="EAID_dstFDBCB5_8852_42ce_B7A6_D7824A2274E8" visibility="public"
> association="EAID_5BFDBCB5_8852_42ce_B7A6_D7824A2274E8" isOrdered="false"
> isDerived="false" isDerivedUnion="false" aggregation="none">
> <type
> xmi:idref="EAID_99C6DCC0_2686_41c2_94A0_76B7BA6539D7"/>
> </ownedEnd>
> <memberEnd
> xmi:idref="EAID_srcFDBCB5_8852_42ce_B7A6_D7824A2274E8"/>
> <ownedEnd xmi:type="uml:Property"
> xmi:id="EAID_srcFDBCB5_8852_42ce_B7A6_D7824A2274E8" visibility="public"
> association="EAID_5BFDBCB5_8852_42ce_B7A6_D7824A2274E8" isOrdered="false"
> isDerived="false" isDerivedUnion="false" aggregation="none">
> <type
> xmi:idref="EAID_7AA9FCFA_0ECB_4f46_BB50_9BD6B0BA757E"/>
> </ownedEnd>
> </packagedElement>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_C94C3038_96CC_4b28_AE5E_9C445BD527F0" name="Class2"
> visibility="public"/>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_99C6DCC0_2686_41c2_94A0_76B7BA6539D7" name="Class3"
> visibility="public"/>
> <packagedElement xmi:type="uml:Interface"
> xmi:id="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B" name="Interface1"
> visibility="public" isAbstract="true"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_4F9958FB_904F_4fee_A4EB_38CAB047A8D7" name="Frameworks"
> visibility="public">
> <ownedComment xmi:type="uml:Comment"
> xmi:id="EAID_EE9EDCDB_08E8_47af_B2AB_DDD42D080B09"/>
> </packagedElement>
> </packagedElement>
> <thecustomprofile:realize
> base_Realisation="EAID_0669F7DA_9249_42b9_9CEF_79D6886AA6A9 "/>
> <thecustomprofile:interface
> base_Interface="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B"/ >
> <uml:Profile xmi:version="2.1" xmlns:uml="http://
> schema.omg.org/spec/UML/2.1/uml.xml" xmlns:xmi="http://schema.omg.org/
> spec/XMI/2.1" xmi:id="thecustomprofile" nsPrefix="thecustomprofile"
> name="thecustomprofile" metamodelReference="mmref01">
> <ownedComment xmi:type="uml:Comment"
> xmi:id="comment01" annotatedElement="thecustomprofile">
> <body> Version:1.0</body>
> <?xml version="1.0" encoding="windows-1252"?>
> <xmi:XMI xmi:version="2.1" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/
> UML" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/
> thecustomprofile/1.0">
> <xmi:Documentation exporter="Enterprise Architect"
> exporterVersion="6.5"/>
> <uml:Model xmi:type="uml:Model" name="EA_Model"
> visibility="public">
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_EFA15F3A_EB0C_44bf_BF50_FFECCB262307" name="Class Model"
> visibility="public">
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_C274A3C5_FD09_446c_BE25_2AD7887D4EE8" name="Auto"
> visibility="public">
> <generalization
> xmi:type="uml:Generalization"
> xmi:id="EAID_AD67C39E_E870_4f8e_AF31_E16C87D264A0"
> general="EAID_F955834A_3C22_434d_AB3E_17A21A6E1B9F"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_F955834A_3C22_434d_AB3E_17A21A6E1B9F" name="Fahrzeug"
> visibility="public"/>
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_9249C168_9B06_429f_ADE5_D23073BDAA90" name="System"
> visibility="public">
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_7AA9FCFA_0ECB_4f46_BB50_9BD6B0BA757E" name="Class1"
> visibility="public">
> <generalization
> xmi:type="uml:Generalization"
> xmi:id="EAID_E1044C21_0B79_4b6a_BBEF_22754E05F32A"
> general="EAID_C94C3038_96CC_4b28_AE5E_9C445BD527F0"/>
> </packagedElement>
> <packagedElement
> xmi:type="uml:Realization"
> xmi:id="EAID_0669F7DA_9249_42b9_9CEF_79D6886AA6A9" visibility="public"
> supplier="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B"
> realizingClassifier="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B "
> client="EAID_7AA9FCFA_0ECB_4f46_BB50_9BD6B0BA757E"/>
> <packagedElement
> xmi:type="uml:Association"
> xmi:id="EAID_5BFDBCB5_8852_42ce_B7A6_D7824A2274E8" visibility="public">
> <memberEnd
> xmi:idref="EAID_dstFDBCB5_8852_42ce_B7A6_D7824A2274E8"/>
> <ownedEnd xmi:type="uml:Property"
> xmi:id="EAID_dstFDBCB5_8852_42ce_B7A6_D7824A2274E8" visibility="public"
> association="EAID_5BFDBCB5_8852_42ce_B7A6_D7824A2274E8" isOrdered="false"
> isDerived="false" isDerivedUnion="false" aggregation="none">
> <type
> xmi:idref="EAID_99C6DCC0_2686_41c2_94A0_76B7BA6539D7"/>
> </ownedEnd>
> <memberEnd
> xmi:idref="EAID_srcFDBCB5_8852_42ce_B7A6_D7824A2274E8"/>
> <ownedEnd xmi:type="uml:Property"
> xmi:id="EAID_srcFDBCB5_8852_42ce_B7A6_D7824A2274E8" visibility="public"
> association="EAID_5BFDBCB5_8852_42ce_B7A6_D7824A2274E8" isOrdered="false"
> isDerived="false" isDerivedUnion="false" aggregation="none">
> <type
> xmi:idref="EAID_7AA9FCFA_0ECB_4f46_BB50_9BD6B0BA757E"/>
> </ownedEnd>
> </packagedElement>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_C94C3038_96CC_4b28_AE5E_9C445BD527F0" name="Class2"
> visibility="public"/>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_99C6DCC0_2686_41c2_94A0_76B7BA6539D7" name="Class3"
> visibility="public"/>
> <packagedElement xmi:type="uml:Interface"
> xmi:id="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B" name="Interface1"
> visibility="public" isAbstract="true"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_4F9958FB_904F_4fee_A4EB_38CAB047A8D7" name="Frameworks"
> visibility="public">
> <ownedComment xmi:type="uml:Comment"
> xmi:id="EAID_EE9EDCDB_08E8_47af_B2AB_DDD42D080B09"/>
> </packagedElement>
> </packagedElement>
> <thecustomprofile:realize
> base_Realisation="EAID_0669F7DA_9249_42b9_9CEF_79D6886AA6A9 "/>
> <thecustomprofile:interface
> base_Interface="EAID_BEF91892_49BA_4b85_8F5B_0C442943334B"/ >
> <uml:Profile xmi:version="2.1" xmlns:uml="http://
> schema.omg.org/spec/UML/2.1/uml.xml" xmlns:xmi="http://schema.omg.org/
> spec/XMI/2.1" xmi:id="thecustomprofile" nsPrefix="thecustomprofile"
> name="thecustomprofile" metamodelReference="mmref01">
> <ownedComment xmi:type="uml:Comment"
> xmi:id="comment01" annotatedElement="thecustomprofile">
> <body> Version:1.0</body>
> </ownedComment>
> <packageImport xmi:id="mmref01">
> <importedPackage href="http://
> schema.omg.org/spec/UML/2.1/uml.xml"/>
> </packageImport>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="realize" name="realize">
> <ownedAttribute xmi:type="uml:Property"
> xmi:id="realize-base_Realisation" name="base_Realisation"
> association="Realisation_realize">
> <type href="http://schema.omg.org/
> spec/UML/2.1/uml.xml#Realisation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="Realisation_realize" name="A_Realisation_realize"
> memberEnd="extension_realize realize-base_Realisation">
> <ownedEnd xmi:id="extension_realize"
> name="extension_realize" type="realize" isComposite="true" lower="0"
> upper="1" memberEnd="extension_realize realize-base_Realisation"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="interface" name="interface">
> <ownedAttribute xmi:type="uml:Property"
> xmi:id="interface-base_Interface" name="base_Interface"
> association="Interface_interface">
> <type href="http://schema.omg.org/
> spec/UML/2.1/uml.xml#Interface"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="Interface_interface" name="A_Interface_interface"
> memberEnd="extension_interface interface-base_Interface">
> <ownedEnd xmi:id="extension_interface"
> name="extension_interface" type="interface" isComposite="true" lower="0"
> upper="1" memberEnd="extension_interface interface-base_Interface"/>
> </packagedElement>
> </uml:Profile>
> </uml:Model>
> </xmi:XMI> </ownedComment>
> <packageImport xmi:id="mmref01">
> <importedPackage href="http://
> schema.omg.org/spec/UML/2.1/uml.xml"/>
> </packageImport>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="realize" name="realize">
> <ownedAttribute xmi:type="uml:Property"
> xmi:id="realize-base_Realisation" name="base_Realisation"
> association="Realisation_realize">
> <type href="http://schema.omg.org/
> spec/UML/2.1/uml.xml#Realisation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="Realisation_realize" name="A_Realisation_realize"
> memberEnd="extension_realize realize-base_Realisation">
> <ownedEnd xmi:id="extension_realize"
> name="extension_realize" type="realize" isComposite="true" lower="0"
> upper="1" memberEnd="extension_realize realize-base_Realisation"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="interface" name="interface">
> <ownedAttribute xmi:type="uml:Property"
> xmi:id="interface-base_Interface" name="base_Interface"
> association="Interface_interface">
> <type href="http://schema.omg.org/
> spec/UML/2.1/uml.xml#Interface"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="Interface_interface" name="A_Interface_interface"
> memberEnd="extension_interface interface-base_Interface">
> <ownedEnd xmi:id="extension_interface"
> name="extension_interface" type="interface" isComposite="true" lower="0"
> upper="1" memberEnd="extension_interface interface-base_Interface"/>
> </packagedElement>
> </uml:Profile>
> </uml:Model>
> </xmi:XMI>
>
> I hope that is a known issue and sombody have a solution :D.
>
> With best regards
>
> Süleyman Vurucu
>
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #478152 is a reply to message #478150] Tue, 03 February 2009 20:35 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi S
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #478153 is a reply to message #478152] Tue, 03 February 2009 22:14 Go to previous messageGo to next message
Süleyman Vurucu is currently offline Süleyman VurucuFriend
Messages: 34
Registered: July 2009
Member
Hi James,

I create a smaler model, because I don't know how I can apply an
attachment to the newsgroup :D.

I create a uml class diagramm with Enterprise architect. There are only
two classes "Class1 and Class2" without assosations.

I export the EA file to a xmi 2.1 file and convert this to an EMF conform
xmi 2.1 file. The generation of a genmodel and ecoremodel from this xmi
file works fine with EMF 2.4 UML 2.1.1 and Eclipse 3.3.

But EMF 2.4 with UML 2.2.1 and Eclipse 3.4 won't genarate anything.

I get the Exception:

org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http://schema.omg.org/spec/XMI/2.1' not found.
(platform:/resource/EMFTets/Class.xmi, 3, 76)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2576)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2407)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType
.....

The converted xmi file is:

<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="2.1"
xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/>
<uml:Model xmi:type="uml:Model" name="EA_Model" visibility="public">
<packagedElement xmi:type="uml:Package"
xmi:id="EAPK_EDCA6A49_762A_458c_9D61_CD2ED0443E3F" name="Class Model"
visibility="public">
<packagedElement xmi:type="uml:Class"
xmi:id="EAID_871381AF_0F33_43d3_8E0C_67DECAEF3F1B" name="Class1"
visibility="public"/>
<packagedElement xmi:type="uml:Class"
xmi:id="EAID_4DB7B53E_A75A_4eb2_9C4D_428FFB8A75FA" name="Class2"
visibility="public"/>
</packagedElement>
</uml:Model>
</xmi:XMI>

Thanks

Süleyman
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #478162 is a reply to message #478153] Thu, 05 February 2009 19:46 Go to previous messageGo to next message
Süleyman Vurucu is currently offline Süleyman VurucuFriend
Messages: 34
Registered: July 2009
Member
Am Tue, 03 Feb 2009 22:14:26 +0000 schrieb Süleyman Vurucu:

> Hi James,
>
> I create a smaler model, because I don't know how I can apply an
> attachment to the newsgroup :D.
>
> I create a uml class diagramm with Enterprise architect. There are only
> two classes "Class1 and Class2" without assosations.
>
> I export the EA file to a xmi 2.1 file and convert this to an EMF
> conform xmi 2.1 file. The generation of a genmodel and ecoremodel from
> this xmi file works fine with EMF 2.4 UML 2.1.1 and Eclipse 3.3.
>
> But EMF 2.4 with UML 2.2.1 and Eclipse 3.4 won't genarate anything.
>
> I get the Exception:
>
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://schema.omg.org/spec/XMI/2.1' not found.
> (platform:/resource/EMFTets/Class.xmi, 3, 76)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2576)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2407)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType
> ....
>
> The converted xmi file is:
>
> <?xml version="1.0" encoding="windows-1252"?> <xmi:XMI xmi:version="2.1"
> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
> <xmi:Documentation exporter="Enterprise Architect"
> exporterVersion="6.5"/> <uml:Model xmi:type="uml:Model" name="EA_Model"
> visibility="public">
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_EDCA6A49_762A_458c_9D61_CD2ED0443E3F" name="Class Model"
> visibility="public">
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_871381AF_0F33_43d3_8E0C_67DECAEF3F1B" name="Class1"
> visibility="public"/>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_4DB7B53E_A75A_4eb2_9C4D_428FFB8A75FA" name="Class2"
> visibility="public"/>
> </packagedElement>
> </uml:Model>
> </xmi:XMI>
>
> Thanks
>
> Süleyman

So Friend,

I've solved this issue. I rename the xmi file to a uml file. :D
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #478172 is a reply to message #478162] Fri, 06 February 2009 16:41 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
... ha ha .. thanks for letting us know.

Cheers,
- James.

"S
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #478183 is a reply to message #478172] Tue, 10 February 2009 16:42 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi S
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #627357 is a reply to message #478150] Tue, 03 February 2009 20:35 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi S
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #627358 is a reply to message #478152] Tue, 03 February 2009 22:14 Go to previous messageGo to next message
Süleyman Vurucu is currently offline Süleyman VurucuFriend
Messages: 34
Registered: July 2009
Member
Hi James,

I create a smaler model, because I don't know how I can apply an
attachment to the newsgroup :D.

I create a uml class diagramm with Enterprise architect. There are only
two classes "Class1 and Class2" without assosations.

I export the EA file to a xmi 2.1 file and convert this to an EMF conform
xmi 2.1 file. The generation of a genmodel and ecoremodel from this xmi
file works fine with EMF 2.4 UML 2.1.1 and Eclipse 3.3.

But EMF 2.4 with UML 2.2.1 and Eclipse 3.4 won't genarate anything.

I get the Exception:

org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http://schema.omg.org/spec/XMI/2.1' not found.
(platform:/resource/EMFTets/Class.xmi, 3, 76)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2576)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2407)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType
.....

The converted xmi file is:

<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmi:version="2.1"
xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5"/>
<uml:Model xmi:type="uml:Model" name="EA_Model" visibility="public">
<packagedElement xmi:type="uml:Package"
xmi:id="EAPK_EDCA6A49_762A_458c_9D61_CD2ED0443E3F" name="Class Model"
visibility="public">
<packagedElement xmi:type="uml:Class"
xmi:id="EAID_871381AF_0F33_43d3_8E0C_67DECAEF3F1B" name="Class1"
visibility="public"/>
<packagedElement xmi:type="uml:Class"
xmi:id="EAID_4DB7B53E_A75A_4eb2_9C4D_428FFB8A75FA" name="Class2"
visibility="public"/>
</packagedElement>
</uml:Model>
</xmi:XMI>

Thanks

Süleyman
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #627368 is a reply to message #478153] Thu, 05 February 2009 19:46 Go to previous messageGo to next message
Süleyman Vurucu is currently offline Süleyman VurucuFriend
Messages: 34
Registered: July 2009
Member
Am Tue, 03 Feb 2009 22:14:26 +0000 schrieb Süleyman Vurucu:

> Hi James,
>
> I create a smaler model, because I don't know how I can apply an
> attachment to the newsgroup :D.
>
> I create a uml class diagramm with Enterprise architect. There are only
> two classes "Class1 and Class2" without assosations.
>
> I export the EA file to a xmi 2.1 file and convert this to an EMF
> conform xmi 2.1 file. The generation of a genmodel and ecoremodel from
> this xmi file works fine with EMF 2.4 UML 2.1.1 and Eclipse 3.3.
>
> But EMF 2.4 with UML 2.2.1 and Eclipse 3.4 won't genarate anything.
>
> I get the Exception:
>
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://schema.omg.org/spec/XMI/2.1' not found.
> (platform:/resource/EMFTets/Class.xmi, 3, 76)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2576)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2407)
> at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType
> ....
>
> The converted xmi file is:
>
> <?xml version="1.0" encoding="windows-1252"?> <xmi:XMI xmi:version="2.1"
> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
> <xmi:Documentation exporter="Enterprise Architect"
> exporterVersion="6.5"/> <uml:Model xmi:type="uml:Model" name="EA_Model"
> visibility="public">
> <packagedElement xmi:type="uml:Package"
> xmi:id="EAPK_EDCA6A49_762A_458c_9D61_CD2ED0443E3F" name="Class Model"
> visibility="public">
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_871381AF_0F33_43d3_8E0C_67DECAEF3F1B" name="Class1"
> visibility="public"/>
> <packagedElement xmi:type="uml:Class"
> xmi:id="EAID_4DB7B53E_A75A_4eb2_9C4D_428FFB8A75FA" name="Class2"
> visibility="public"/>
> </packagedElement>
> </uml:Model>
> </xmi:XMI>
>
> Thanks
>
> Süleyman

So Friend,

I've solved this issue. I rename the xmi file to a uml file. :D
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #627372 is a reply to message #478162] Fri, 06 February 2009 16:41 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
... ha ha .. thanks for letting us know.

Cheers,
- James.

"S
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #627383 is a reply to message #478172] Tue, 10 February 2009 16:42 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi S
Re: PackageNotFoundException: Package with uri 'http://schema.omg.org/spec/XMI/2.1' not found [message #1249753 is a reply to message #478150] Tue, 18 February 2014 15:38 Go to previous message
Aaron Kampichler is currently offline Aaron KampichlerFriend
Messages: 9
Registered: February 2014
Junior Member
Hello,

I know this subject isn't quite frequent, but i've got the same problem and changing the filename to .uml doesn't change anything of my result Confused

Any suggestions?
Previous Topic:Eclipse UML Profiles Repository now available!
Next Topic:Diagramming options
Goto Forum:
  


Current Time: Mon Dec 22 07:53:24 GMT 2014

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

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