The profiler doesn't work with the embeeded Tomcat; trying to start it in "profiling mode" gives an error message about the profiling agent not found.
I discovered that this is due to the presence of spaces in classpaths (that is, in the installation folder of NetBeans 6). My NB6 got installed in
(being /Applications/NetBeans 6.0M10.app the default, I just prepended my home directory). Inside the bundle there's the directory:
/Users/fritz/Applications/NetBeans 6.0M10.app/Contents/Resources/NetBeans 6.0M10
with another space between 6.0M10. Removing both of spaces (and fixing two symlinks) the profiler works fine.
I didn't test this on other o.s. yet, so at the moment I'm filing this as Mac OS X specific. BTW, Java startup scripts are usually still fragile with respect of the
presence of spaces in the classpaths, so it could be a general idea to avoid them not only for this profiler bug, but as they could originate other problems.
Probably duplicate of issue #103047
Probably it's so. I saw 103047, but I filed a different issue since I'm working with NB6M10 (not M9) and Tomcat 6.0.13 (not 5.5.23), and the error I get is
different. It probably depends on how it will be fixed: removing the spaces and declaring them illegal in any installation will fix both; otherwise, I think that
these two bugs could require similar but multiple fixes in Tomcat scripts.
*** This issue has been marked as a duplicate of 103046 ***