users@glassfish.java.net

Re: Profiling with Netbeans

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 May 2007 13:24:56 PDT

yap, make sense,

well, I think it is not tested enough,
Is it okay that GF does not have the appserv-rt.jar in the manifest?


well, I think it is not tested enough, after adding the jar to the system-classpath, I get another exception by netbeans,


C:\data\dev\glassfish\lib\appserv-launch.jar;;c:/data/dev/glassfish/lib/appserv-rt.jar
com.sun.enterprise.server.PELaunch
start
Profiler initialization failed due to:
java.lang.NoClassDefFoundError: org/netbeans/modules/schema2beans/BaseBean
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        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.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        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.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        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.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at java.util.logging.LogManager$1.run(LogManager.java:164)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:156)
        at java.util.logging.Logger.getLogger(Logger.java:274)
        at com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder.<clinit>(AppServerMBeanServerBuilder.java:69)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at javax.management.MBeanServerFactory.newBuilder(MBeanServerFactory.java:438)
        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:475)
        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)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.util.logging.LogManager
        at java.util.logging.Logger.getLogger(Logger.java:315)
        at com.sun.logging.LogDomains.getLogger(LogDomains.java:240)
        at com.sun.enterprise.util.i18n.StringManagerBase.<clinit>(StringManagerBase.java:101)
        at com.sun.enterprise.server.PEMain.<clinit>(PEMain.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:294)



But I assume I'll have to seek for all the missing classes and add the jars one by another,


Shouldn't Netbeans profiling work without these modifications?

Thanks,

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

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