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.
Profiler 070420 NetBeans IDE Dev (Build 070423) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Windows XP version 5.1 running on x86 ru_RU (nb); Cp1251 Steps to reproduce: - Make sure that <Use Java Platform Defined In Project> is selected in Profiler Options. - Try to Profile Enterprise Application, EJB Module or Web Application - RESULT: A dialog with an incorrect message is shown (issue 101806) that asks user to select the JDK for profiling. It looks strange since there is an information about JDK version in Project's Options. However, the root of this problem is inability of profiler to get JDK info for any particular Application or Web server. It would be nice if profiler was able to get this information from server.
I think that the problem is that you don't understand how profiling J2EE applications work. The Profiler doesn't need to detect anything, the Profiler *controls* which JDK will be used for starting the server using J2EE profiling API in serverplugin. The Java Platform defined in Project properties isn't related to the Java Platform the server will be started on in any way. This is being determined from serverplugin when the server&its plugin supports it (currently only Tomcat), for running & debugging projects this can be set in server's customizer (currently Tomcat & JBoss). FYI, the Profiler is able to detect JDK the target application is running on (and it does so), but this is absolutely useles in this case because the Profiler needs to create correct -agentpath argument *before* the server starts.
I agree that my understanding of this functionality is different from yours. Probably this is because I appeal to the facts. The facts are as following: - GlassFish is never invoked using the selected JDK (issue 93395) - Even there is an option for platform in JBoss Server Customizer, Profiler is still asking for JDK for JBoss-targeted projects
As for the first item - this is covered by that issue. As for the second item - please file an issue to jboss serverplugin.
Filed new Issue 102286 for JBoss server. Feel free to file corresponding issue to serverplugins.
Verified as invalid
There is an RFE for GlassFish: Issue 83315