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.
NoClassDefFoundError occurs when run a Web project with GlassFish V3 in Profile mode Steps To Reproduce: 1. Install NB 6.7 RC2 build with jdk1.6.0_13 on winXP machine 2. Start ND IDE -> install GlassFish V3 Enabler plugin 3. Register V3 Server by downloading it 4. From Profile Menu, select Advanced Commands -> Run Profiler Calibration (select the default configuration) 5. Create a Web Module Project -> select V3 server for default runtime 6. From the Profile menu, select Profile main Project to run the recently created Web project with V3 server BUG: Exception occurs as described in the attached log files and the screen shot - Failed to run the project This problem does not happen with v3 Prelude This problem also happens on OpenSolaris 2008.11 platform
Created attachment 83263 [details] Failed to run the project
Created attachment 83264 [details] server.log
Created attachment 83265 [details] messages.log
I jusrt tried it on Solaris and could not reproduce the issue. I will try Vista later today.
I was able to reproduce this on Vista, if I used 'CPU, Entire Application, Profile only project classes'. I cannot reproduce this if I use 'Monitor, Enable threads monitoring', 'Monitor'. I get a slightly different error if I try to 'Memory, Record object creation only' ERROR: Error starting file:/C:/Users/vbk/GlassFish_v3/glassfish/modules/osgi-main.jar (org.osgi.framework.BundleException: Activator start error in bundle com.sun.enterprise.osgi-main [1].) java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeObjAlloc at org.jvnet.hk2.osgimain.Main.<clinit>(Main.java:68) 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:359) at java.lang.Class.newInstance(Class.java:308) at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3353) at org.apache.felix.framework.Felix.startBundle(Felix.java:1486) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:989) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) at java.lang.Thread.run(Thread.java:619) The ide is installed in "C:\Program Files\NetBeans 6.7 RC2\bin\netbeans.exe" the server is installed in c:\users\vbk\GlassFish_v3
AFAICK The problem is caused by changes made in the Felix's bootdelegation. See this blog post for details http://blogs.sun.com/binublog/entry/glassfish_v3_profiling
thanks for the pointer. I will test this.
This seems to work. opened https://glassfish.dev.java.net/issues/show_bug.cgi?id=8612, since it is easier to get the property added then to add it dynamically.
this will get resolved in the 6.8 release..
This appears to be fixed by changes in GF v3 b57 which is in builds 200907300201 and younger.