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.
Since introduction of the usage of LinuxPosixThreadsCPUClocks the attach wizard fails to correctly modify Tomcat's catalina.sh file. The resulting CATALINA_OPTS definitions is: CATALINA_OPTS= -XX:+UseLinuxPosixThreadCPUClocks -agentpath:/opt/netbeans/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/opt/netbeans/profiler/lib,5140 where it should be: CATALINA_OPTS=" -XX:+UseLinuxPosixThreadCPUClocks -agentpath:/opt/netbeans/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/opt/netbeans/profiler/lib,5140" The contained space causes the shell go crazy and basically ignore the profiler modifications.
Regression introduced by http://hg.netbeans.org/main/rev/5422427852ea
Fix delivered in http://hg.netbeans.org/main/rev/a51b72797955
Making this a stopper - the regression was introduced in 7.0
Reviewed. It can be transplanted to release701.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a51b72797955 User: Jaroslav Bachorik <yardus@netbeans.org> Log: #199572: Fixing incorrect modification of catalina.sh by the profiler attach wizard introduced by changeset 5422427852ea
Verified on: Product Version: NetBeans IDE Dev (Build 201106260600) Java: 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b15
Went through logs from hg and haven't found this fix in releases clone yet.
Transplanted into release701_dev branch: http://hg.netbeans.org/releases/rev/2efdae68b57d
Transplanted to the correct branch "release701" http://hg.netbeans.org/releases/rev/5dbcf7d8e808
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/5dbcf7d8e808 User: Jaroslav Bachorik <yardus@netbeans.org> Log: #199572: Fixing incorrect modification of catalina.sh by the profiler attach wizard introduced by changeset 5422427852ea (transplanted from a51b72797955a9c6dc76a6925993b583f7852b65)