Gabriele - 2002-10-29

I tryed to generate a custom metamodel starting from the follow XMI file :

<?xml version = '1.0' encoding = 'ISO-8859-1' ?>
<!-- <!DOCTYPE XMI SYSTEM 'Model.dtd' > -->
<XMI xmi.version = '1.1' xmlns:Model='org.omg/mof.Model/1.3' timestamp = 'Tue Oct 29 10:33:50 2002' >
<XMI.header>
  <XMI.documentation>
   <XMI.exporter>Unisys.JCR.1</XMI.exporter>
   <XMI.exporterVersion>1.3.2</XMI.exporterVersion>
  </XMI.documentation>
  <XMI.metamodel xmi.name = 'org.omg.mof.Model' xmi.version = '1.3'/>
</XMI.header>
<XMI.content>
<!-- ==================== test    [Package] ==================== -->
<Model:Package xmi.id = 'a3DBE555E009B'
  name = 'test' annotation = ''
  isRoot = 'false' isLeaf = 'false' isAbstract = 'false' visibility = 'public_vis' >
  <Model:Namespace.contents>
    <!-- ==================== test.Service    [Class] ==================== -->
    <Model:Class xmi.id = 'a3DBE5569017D'
      name = 'Service' annotation = ''
      isRoot = 'false' isLeaf = 'false' isAbstract = 'false' visibility = 'public_vis'
      isSingleton = 'false' />
  </Model:Namespace.contents>
</Model:Package>
</XMI.content>
</XMI>

During the generation i recived this error :

init:
generate:
     [java] java.lang.RuntimeException: Unknown xml element: <Model:Package xmi.id="a3DBE555E009B" name="test" annotation="" isRoot="false" isLeaf="false" isAbstract="false" visibility="public_vis">
     [java]   <Model:Namespace.contents>

The strange thing is that the process goes fine but the genarated classes are always the UML1.3 classes. My classes are not generated as well.
Can you give me any suggestions. Thanks