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 45843 - NoClassDefFoundError while bring up NetBeans
Summary: NoClassDefFoundError while bring up NetBeans
Status: CLOSED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-02 15:33 UTC by Petr Blaha
Modified: 2006-03-24 09:52 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 Petr Blaha 2004-07-02 15:33:07 UTC
In case that Sun App server plugin is installed,
the Netbeans, during start up, throws:

 java.lang.NoClassDefFoundError:
org/netbeans/modules/db/explorer/driver/JDBCDriverManager
	at
com.sun.enterprise.tools.studio.j2ee.db.RegisterPointbase.register(RegisterPointbase.java:50)
	at
com.sun.enterprise.tools.studio.Installer.restored(Installer.java:38)
	at
org.netbeans.core.modules.NbInstaller.loadCode(NbInstaller.java:322)
	at
org.netbeans.core.modules.NbInstaller.load(NbInstaller.java:240)
	at
org.netbeans.core.modules.ModuleManager.enable(ModuleManager.java:861)
	at
org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:350)
	at
org.netbeans.core.modules.ModuleList.trigger(ModuleList.java:284)
	at
org.netbeans.core.modules.ModuleSystem.restore(ModuleSystem.java:253)
	at org.netbeans.core.NonGui.run(NonGui.java:369)
	at org.netbeans.core.Main.run(Main.java:168)
	at
org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:232)
	at
org.netbeans.core.NbTopManager.get(NbTopManager.java:187)
	at org.netbeans.core.Main.start(Main.java:310)
	at
org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 1 Radko Najman 2004-07-19 14:47:57 UTC
Nam, could you look at it, please? I guess you can know what's the
problem.
Comment 2 Nam Nguyen 2004-07-19 17:57:42 UTC
The code in question is the sjas plugin code in close source.  Does
the module code have declared dependency on dbexplorer in its manifest.mf?
Comment 3 Radko Najman 2004-07-20 15:40:54 UTC
I've found the problem. There are defined no public packages in the
Database Explorer in the promo-D release. That's why the sjas plugin
can't find JDBCDriverManager class.
I'll look at it.
Comment 4 Petr Jiricka 2004-07-20 20:08:15 UTC
Looks like the plugin should declare impl.version dependency and db
module should declare OpenIDE-Module-Build-Version in the manifest?
Comment 5 Vince Kraemer 2004-07-20 22:18:53 UTC
Petr, can you explain your note a bit more. Is there a document that
would help me decrypt it
Comment 6 Petr Jiricka 2004-07-22 08:46:41 UTC
There is some info (not much) at 

http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/modules/doc-files/api.html

The idea is: two modules can either have a stable contract, where the
maintainer of the module that provides API guarantees API stability.
In this case, the OpenIDE-Module-Public-Packages manifest tag must
list the packages that are publicly available.
Or, there can be a "friend" contract, when the stability is not
guaranteed. This is what should be done in this case. To do that, the
db module should declare OpenIDE-Module-Implementation-Version and
OpenIDE-Module-Build-Version. See also an example in web/jstl11

OpenIDE-Module-Implementation-Version: @JSTL11_SPEC_VERS_SUBST@
OpenIDE-Module-Build-Version: @BUILD_NUMBER_SUBST@

Then, the plugin should declared dependency on the exact specification
version. If it declares dependency on the exact specicication version,
all classes in the db module will be accessible for the plugin.

So there is work on both sides.
Comment 7 Radko Najman 2004-07-23 14:13:37 UTC
Fixed on the Database Explorer side.

Modules that depend on the Database Explorer and need to run under
promoD must declate the following dependency in the manifest:
OpenIDE-Module-Module-Dependencies: org.netbeans.modules.db/1 = 1.1

Can somebody fix it in the sjas plugin and then close this issue,
please? Thanks, Radko
Comment 8 Radko Najman 2004-07-27 13:19:15 UTC
Nam, could you reassign this issue to the right person, please? I
don't guess who is sjas plugin module owner.
Comment 9 Petr Jiricka 2004-07-27 14:55:06 UTC
That would be Vince, right?
Comment 10 Petr Blaha 2004-07-27 15:50:36 UTC
I fill issue into Bugtraq #6152654, there are bugs related to App
server plugin.
Comment 11 Radko Najman 2004-07-28 09:40:16 UTC
The issue is now tracked in Bugtraq so closing as FIXED.
Comment 12 dmladek 2004-09-07 13:55:14 UTC
Petr swear it works :-)