This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 59192 - UML2MOF & Enterprise Architect
Summary: UML2MOF & Enterprise Architect
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-23 19:17 UTC by andreok
Modified: 2005-05-24 22:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andreok 2005-05-23 19:17:44 UTC
I'm trying to use the Enterprise Architect v4.51 to generate metamodel UML XMI 
1.2 files and then convert it to MOF XMI using NetBeans MDR uml2mof tool. 
 
I'm having some problems I think related to TaggedValues compatibility.
The EA UML XMI 1.2 exported file has the TagDefinition element under the Model 
element and associates the TaggedValues values under a UML:Collaboration tag. 
After looking the MDR documented example I found that the UML2MOF expects the 
TagDefinition in the document root and TaggedValue values under the owner 
element. Is it right?
Comment 1 Martin Matula 2005-05-23 22:43:08 UTC
This is a problem in EA serialization. See the following thread for more info:
http://mdr.netbeans.org/servlets/ReadMsg?list=users&msgNo=2196
Comment 2 andreok 2005-05-24 14:56:00 UTC
The http://mdr.netbeans.org/servlets/ReadMsg?list=users&msgNo=2196 
issue says that all TaggedValues should be removed from the XMI file.
But I saw that some MDR specific TaggedValues were added to the Projects.xml 
example file (ex: javax.jmi.packagePrefix = org.netbeans.jmi).
Isn't the javax.jmi.packagePrefix TaggedValue necessary?
Comment 3 Martin Matula 2005-05-24 22:05:40 UTC
Please use users@mdr.netbeans.org for discussion instead of reopening this issue.

Tagged values are useful. So, there might be situations when you need them.
Unfortunatelly, EA is unable to serialize them correctly. The correct
serialization is the one you see in the projects.xml file. Moreover, EA seems to
use older version of UML - UML 1.3. UML2MOF tool was designed to work with UML
1.4. So most likely, the EA XMI files would not work with it anyway.

BTW: As you can see from the mentioned thread, Pete had an XSLT document that
can fix your XMI. You may want to try to contact him to get that stylesheet and
try it out...