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 35327 - UML2MOF does not compile or run
Summary: UML2MOF does not compile or run
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on: 35366
Blocks:
  Show dependency tree
 
Reported: 2003-08-07 17:35 UTC by jcahoon
Modified: 2003-08-14 09:34 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 jcahoon 2003-08-07 17:35:11 UTC
I tried very carefully to follow the instructions on the 
web pages for building UML2MOF. Several weeks ago I 
succeeded. Now I cannot.

I checked out netbeans modules standard_nowww and mdr.

Following the instructions, everything seems to go well 
until I run ant in the UML2MOF directory.

It cannot find any of the UML classes like UmlPackage.
To fix this I changed build.xml to use:
mdr/test/unit/src/org/netbeans/mdr/test/data/uml-14.jar

After this problem, the build of UML2MOF complained about 
not being able to find crimson-1.1.3.jar. I saw in 
NBInstaller.java from core that crimson may have been 
hidden inside of rt.jar, so I commented out the crimson 
lines in the UML2MOF build.xml.

After that problem, the ant in UML2MOF complained about xml-
apis-1.ob2.jar. Not knowing what to do, I commented out 
those lines.

Compile completed successfully, but UML2MOF won't run 
because:
java.lang.NoClassDefFoundError: org/openide/util/Utilities


How can I build UML2MOF in the mean time. It used to work. 
Is there some tag I can use in the cvs checkout that will 
get me a working UML2MOF? As I said, I used standard_nowww 
and mdr as the modules I checked out.

Thanks,
Jeff
Comment 1 jcahoon 2003-08-11 20:30:21 UTC
I realize now that the UmlPackage stuff gets created in the 
MDRAnt process when you run the sample. However, because of 
the other problems, that still does not help me compile or 
run the tool.

If someone were to help me get this tool running, I would 
be more than happy to update the web pages and sample.xml 
to ease the process for new users like myself.
Comment 2 Martin Matula 2003-08-12 00:39:44 UTC
The exception that you get seems to be caused by the bug in the
openide build script that I just filed.
What you wrote in the second note is not significant - subsequent
failures of attempts to build uml2mof are caused by a wrongly
initialized storage (caused by the original problem with Utilities
class). There should be no problem with the MDRAnt library. I will
commit an updated version of uml2mof build script (I removed
dependency on crimson and xml-apis) and wait for the openide build
script to be fixed (I believe it will be tomorrow). Then it should
start working again. But you will have to invoke ant real-clean in the
uml2mof directory before you will try to build it again to erase the
wrongly initialized storage.
Comment 3 Martin Matula 2003-08-14 09:34:52 UTC
OK - the issue with openide-lookup was fixed. You need to update
sources of openide module from CVS, then go to uml2mof directory,
first invoke "ant real-clean" then "ant" and it should work.