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 148174

Summary: org.netbeans.modules.glassfish classes are loaded on NetBeans startup with LimeWire project
Product: serverplugins Reporter: Alexander Kouznetsov <mrkam>
Component: InfrastructureAssignee: Petr Hejl <phejl>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: issues, jtulach, pcw, pjiricka
Priority: P3 Keywords: PERFORMANCE, TEST
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://wiki.netbeans.org/FitnessViaWhiteAndBlackList
Issue Type: DEFECT Exception Reporter:
Attachments: Stacktraces

Description Alexander Kouznetsov 2008-09-24 10:02:52 UTC
Performance test reports that the following classes are loaded on NetBeans startup with LimeWare project:

    org.netbeans.modules.glassfish.common.GlassfishInstanceProvider
    org.netbeans.modules.glassfish.javaee.Hk2DeploymentFactory
    org.netbeans.modules.glassfish.javaee.Hk2OptionalFactory
    org.netbeans.modules.glassfish.spi.ServerUtilities

Please don't load these classes unless they are really necessary.
Comment 1 Alexander Kouznetsov 2008-09-24 10:03:15 UTC
Created attachment 70417 [details]
Stacktraces
Comment 2 _ pcw 2008-09-25 06:45:41 UTC
Initialization of the GlassFish server registry is already lazy (to the extreme).  These classes are being loaded
because j2eeserver module is explicitly requesting server registry initialization.

--> j2eeserver for evaluation on whether this is necessary in this circumstance.
Comment 3 Petr Hejl 2008-10-08 13:19:40 UTC
The cause is the same as for issue 148177.

*** This issue has been marked as a duplicate of 148177 ***
Comment 4 Alexander Kouznetsov 2008-10-09 13:35:13 UTC
verified