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 166657 - Exception occurs when run a Web project with V3 Profile
Summary: Exception occurs when run a Web project with V3 Profile
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-06 00:15 UTC by davisn
Modified: 2009-07-30 18:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Failed to run the project (48.86 KB, image/png)
2009-06-06 00:17 UTC, davisn
Details
server.log (35.86 KB, text/plain)
2009-06-06 00:24 UTC, davisn
Details
messages.log (40.32 KB, text/plain)
2009-06-06 00:25 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2009-06-06 00:15:05 UTC
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
Comment 1 davisn 2009-06-06 00:17:49 UTC
Created attachment 83263 [details]
Failed to run the project
Comment 2 davisn 2009-06-06 00:24:06 UTC
Created attachment 83264 [details]
server.log
Comment 3 davisn 2009-06-06 00:25:19 UTC
Created attachment 83265 [details]
messages.log
Comment 4 Vince Kraemer 2009-06-06 00:49:17 UTC
I jusrt tried it on Solaris and could not reproduce the issue.  I will try Vista later today.
Comment 5 Vince Kraemer 2009-06-07 20:14:33 UTC
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
Comment 6 Tomas Hurka 2009-06-10 08:21:27 UTC
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
Comment 7 Vince Kraemer 2009-06-16 07:11:50 UTC
thanks for the pointer.

I will test this.
Comment 8 Vince Kraemer 2009-06-29 22:38:55 UTC
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.
Comment 9 Vince Kraemer 2009-07-17 14:43:26 UTC
this will get resolved in the 6.8 release..
Comment 10 Vince Kraemer 2009-07-30 18:40:29 UTC
This appears to be fixed by changes in GF v3 b57 which is in builds 200907300201 and younger.