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.
Hi, I have the Visual Database explorer RCP example up and running on NB 5.5. I tried run JNLP from NB 5.5 IDE, it gives me the following error: Warning - could not install some modules: SQL Editor - The module named org.netbeans.modules.db/0 was needed and not found. Database Core - The module named org.netbeans.modules.db/0 was needed and not found. VisualExplorer - The module named org.netbeans.modules.db/0 was needed and not found. Database APIs - The module named org.netbeans.modules.db/0 was needed and not found. Another module could not be installed due to the above problems. Any help on this would begreatly appreciated. I have spend one full day on this. -PD
This is caused by there being two files called org-netbeans-modules-db.jar (one in ide7/modules -- the real module -- and the second in ide7/modules/docs. When the JNLP application is built the docs jar overrides the module jar. Can be reproduced with the attached suite.
Created attachment 39837 [details] Suite for reproducing the issue
This was already fixed as part of issue #90498. *** This issue has been marked as a duplicate of 90498 ***
Agreed on the reason for the defect. I am not clear on how to fix this and have Visual Database explorer web start run. I read the issue #90498, it didn't help me I appreciate if you can reply with a step by step process to fix this.
Simplest workaround I can think of: rename modules/docs/org-netbeans-modules-db.jar to e.g. modules/docs/org-netbeans-modules-db-help.jar; then open modules/org-netbeans-modules-db.jar and edit META-INF/MANIFEST.MF from Class-Path: docs/org-netbeans-modules-db.jar to Class-Path: docs/org-netbeans-modules-db-help.jar Then proceed normally (do a clean build of your suite). Untested but I guess it will work.
I tried as suggested, Build JNLP application failed. Here is the error: C:\Program Files\netbeans-5.5\harness\suite.xml:194: The following error occurred while executing this line: C:\Program Files\netbeans-5.5\harness\jnlp.xml:126: Cannot build JNLP for module C:\Program Files\netbeans-5.5\ide7\modules\org-netbeans-modules-db.jar as these files are in module's NBM, but are not referenced from any path: [modules/docs/locale/org-netbeans-modules-db_ja.jar, modules/docs/org-netbeans-modules-db.jar, modules/docs/locale/org-netbeans-modules-db_pt_BR.jar, modules/docs/locale/org-netbeans-modules-db_zh_CN.jar] BUILD FAILED (total time: 33 seconds)
So you may need to also 1. Delete or rename the *_*.jar locale variants. 2. Update the file ide7/update_tracking/org-netbeans-modules-db.xml to list the new file names.
Thank you a million for your help. I deleted the *_*.jar locale variants and updated the file ide7/update_tracking/org-netbeans-modules-db.xml accordingly. I was able to webstart finally. I guess Netbeans 6.0 should have the fix for this defect and we need not do the above work around in NB 6.0. Is that true? I appreciate your help.
Glad to hear it worked for you. Yes, this problem will not be in NB 6.0 (though there may of course be different problems).