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 177592 - Netbinox build-zip distribution is broken
Summary: Netbinox build-zip distribution is broken
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 6.x
Hardware: Other Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 08:10 UTC by Jaroslav Tulach
Modified: 2010-01-13 12:28 UTC (History)
1 user (show)

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 Jaroslav Tulach 2009-11-25 08:10:38 UTC
Get Netbinox-Mylyn sample and try to build-zip. The final ZIP is missing entries from eclipse cluster.

Steps to reproduce:

$ hg clone http://source.apidesign.org/hg/netbinox-mylyn-sample/ -r df15d54ca5fe
$ cd mylyn-suite
$ ant build-zip

(maybe you need to open the project first in an IDE built with proper support:
http://hudson.apidesign.org/hudson/view/Netigso/job/netbinox/)

The eclipse cluster and its JARs do not get included in the final ZIP at all. This may be due to missing NetBeans tags in manifests or because of missing update_tracking files.
Comment 1 Jaroslav Tulach 2009-11-30 04:29:17 UTC
Generating also update_tracking files when clusterizing a platform application: netigso#370db64e3f7f
Comment 2 bobuse 2009-12-22 21:20:15 UTC
Regression: I can reproduce this issue with last netbinox sources.
It occurs with my Netbinox project and the mylyn sample (up-to-date) project. I've this error:
java.lang.NoClassDefFoundError: org/osgi/framework/BundleException
Comment 3 Jaroslav Tulach 2009-12-23 00:18:50 UTC
OK, I tried:

$ hg pull http://source.apidesign.org/hg/netbinox
$ hg update -C
$ ant
$ ant run

Then open the mylyn-suite in started IDE, clean & build all.
Run works OK.
Build ZIP, unzip it somewhere and start. I also get:

java.lang.NoClassDefFoundError: org/osgi/framework/BundleException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at org.openide.util.lookup.MetaInfServicesLookup$P.createInstance(MetaInfServicesLookup.java:570)
        at org.openide.util.lookup.MetaInfServicesLookup$P.getInstance(MetaInfServicesLookup.java:464)
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:413)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:205)
        at org.netbeans.ModuleManager.<init>(ModuleManager.java:137)
        at org.netbeans.core.startup.ModuleSystem.<init>(ModuleSystem.java:95)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:158)
        at org.netbeans.core.startup.Main.start(Main.java:309)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:111)
        at java.lang.Thread.run(Thread.java:619)
Comment 4 Jaroslav Tulach 2009-12-23 00:27:06 UTC
The problem is that platform11/core/equinox.jar is missing. This is caused by the netbinox build missing proper platform11/update_tracking/org-netbeans-core-netigso.xml
Comment 5 Jaroslav Tulach 2009-12-29 09:25:45 UTC
I guess I fixed the problem in 

core-main#c97ae7b8a022
and
netbinox#e4057c8ac0d4

Please verify on Dec 31, 2009 or later. Thanks.
Comment 6 bobuse 2010-01-04 05:06:27 UTC
Yes, I confirm, it works !
Thank you !!

Happy GNU year :-)
Comment 7 Jaroslav Tulach 2010-01-04 09:25:37 UTC
;-)
Comment 8 Quality Engineering 2010-01-13 12:28:24 UTC
Integrated into 'main-golden', will be available in build *201001131418* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/370db64e3f7f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #177592: ant -f harness/suite.xml clusterize also generates update_tracking files