users@glassfish.java.net

Profiling with Netbeans

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 May 2007 10:45:34 PDT

Hey,

I'm trying to execute a profiling process through Netbeans with latest build of GF (v2-48),

But I get a 'ClassNotFoundException' over 'com.sun.enterprise.server.logging.ServerLogManager,

What could be the reason for that?
I've seen a close issue with 'yourkit' profiling here:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1409


Here's the full stacktrace:




C:\data\dev\glassfish\lib\appserv-launch.jar;
com.sun.enterprise.server.PELaunch
start
Could not load Logmanager "com.sun.enterprise.server.logging.ServerLogManager"
java.lang.ClassNotFoundException: com.sun.enterprise.server.logging.ServerLogManager
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.util.logging.LogManager$1.run(LogManager.java:166)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:156)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.sun.jmx.trace.Trace.initDestination(Trace.java:46)
        at com.sun.jmx.trace.Trace.<clinit>(Trace.java:25)
        at javax.management.MBeanServerFactory.debug(MBeanServerFactory.java:524)
        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483)
        at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511)
        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
        at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
        at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
        at com.sun.tools.profiler.server.system.HeapDump.initialize16(HeapDump.java:50)
        at com.sun.tools.profiler.server.system.HeapDump.initialize(HeapDump.java:38)
        at com.sun.tools.profiler.server.ProfilerInterface.initProfilerInterface(ProfilerInterface.java:99)
        at com.sun.tools.profiler.server.ProfilerServer.initSupportingFunctionality(ProfilerServer.java:189)
        at com.sun.tools.profiler.server.ProfilerServer.doActivate(ProfilerServer.java:419)
        at com.sun.tools.profiler.server.ProfilerServer.activate(ProfilerServer.java:366)
Failed to load MBeanServerBuilder class com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
30/05/2007 21:38:05 com.sun.enterprise.server.PEMain main
INFO: Starting Sun Java System Application Server 9.1 (build b48-beta3) ...
30/05/2007 21:38:06 com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
INFO: MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
30/05/2007 21:38:12 com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
INFO: CORE5098: AS Socket Service Initialization has been completed.
30/05/2007 21:38:12 com.sun.enterprise.server.ApplicationServer printStartupInfo
INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0] from [Sun Microsystems Inc.]





Thanks,

Asaf.
[Message sent by forum member 'trouby' (trouby)]

http://forums.java.net/jive/thread.jspa?messageID=219499