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.
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)
Nam, could you look at it, please? I guess you can know what's the problem.
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?
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.
Looks like the plugin should declare impl.version dependency and db module should declare OpenIDE-Module-Build-Version in the manifest?
Petr, can you explain your note a bit more. Is there a document that would help me decrypt it
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.
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
Nam, could you reassign this issue to the right person, please? I don't guess who is sjas plugin module owner.
That would be Vince, right?
I fill issue into Bugtraq #6152654, there are bugs related to App server plugin.
The issue is now tracked in Bugtraq so closing as FIXED.
Petr swear it works :-)