Skip to main content


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 #627355] Mon, 02 February 2009 18:18
Ed Merks is currently offline Ed MerksFriend
Messages: 31009
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
>
Previous Topic:Redefined property type in Genmodel
Next Topic:Submachine state instances and parameters
Goto Forum:
  


Current Time: Wed Apr 01 12:02:51 GMT 2020

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

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

Back to the top