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 97880 - Cannot do Webstart of Visual Database explorer
Summary: Cannot do Webstart of Visual Database explorer
Status: RESOLVED DUPLICATE of bug 90498
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 17:37 UTC by pd
Modified: 2007-03-24 15:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suite for reproducing the issue (11.18 KB, application/x-compressed)
2007-03-22 19:41 UTC, Andrei Badea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pd 2007-03-14 17:37:07 UTC
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
Comment 1 Andrei Badea 2007-03-22 19:40:02 UTC
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.
Comment 2 Andrei Badea 2007-03-22 19:41:51 UTC
Created attachment 39837 [details]
Suite for reproducing the issue
Comment 3 Jesse Glick 2007-03-22 19:52:29 UTC
This was already fixed as part of issue #90498.

*** This issue has been marked as a duplicate of 90498 ***
Comment 4 pd 2007-03-23 15:55:50 UTC
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.
Comment 5 Jesse Glick 2007-03-23 20:38:22 UTC
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.
Comment 6 pd 2007-03-23 21:45:30 UTC
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)

Comment 7 Jesse Glick 2007-03-23 22:26:21 UTC
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.
Comment 8 pd 2007-03-24 04:53:44 UTC
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.
Comment 9 Jesse Glick 2007-03-24 15:54:32 UTC
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).