Re: uml2mof and UML 1.3
Martin Matula <[email protected]> Sun, 02 Oct 2005 13:26:05 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Joerg, you have the correct files. Make sure you put only the uml13.jar on the classpath (not the uml1.4.jar!). And delete the storage files before you run the UML2MOF tool. If you still encounter this issue after doing the above, please let me know. And send the output of the UML2MOF tool. Martin Jörg Schütz wrote: > Hi Martin, > > > > > > Thanks for your help. However, I am still facing some problems > generating the jar file. > > First of all I am confused by the different files of the UML models that > are on the given page. Under ‘UML 1.3’ there is no diff file available. > However, under ‘UML 1.4’, when clicking on ‘metamodel’ one is redirected > to an OMG page stating that the file given there is the UML 1.3 > definition. When clicking on ‘JMI Tags’ of this category, the > corresponding diff file is given. > > I do not know if these two files are the definition of UML 1.3 or 1.4? > > However, I imported these two files in the MDR Explorer of Netbeans, > generated the JMI Interfaces, compiled the files and added them to a jar > together with the two xml files. > > However, when using the uml2mof tool there results a ClasscastException > in the init() method on the following line: > > uml = (UmlPackage) rep.getExtent(UML_INSTANCE); > > The definition of the UmlPackage class is taken from the generated > interfaces. > > Did I miss anything when generating the jar? > > Attached you find the two xml files I used for generation. > > Thanks > > > > Jörg > > > > > > > >