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.
Create Web Project . Set JBoss as J2EE server . Call "Profile" popup menu item for project . As result there is no information about server start up. Output contains : >Calling _path_to_jboss-5.1.0.GA\bin\run.conf.bat >and was unexpected at this time. Profiling tab is not opened and it is impossible to see profiling information.
The problem is inside run.bat of JBoss bin directory. I have commented out checks for RUN_CONF and realized that this error still presents. For some reasons this lines generates mentioned output : >if "x%JAVA_OPTS%" == "x" ( > set "JAVA_OPTS=-Dprogram.name=%PROGNAME%" >) else ( > set "JAVA_OPTS=-Dprogram.name=%PROGNAME% %JAVA_OPTS%" >) I don't now why this code doesn't work . In my case JAVA_OPTS is -Xms128m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="F:\Documents and Settings\den\My Documents\NetBeansProjects\WebApplicationJBoss\nbproject\private\profiler" -agentpath:C:\dev\profiler-main\nbbuild\netbeans\profiler3\lib\deployed\jdk16\windows\profilerinterface.dll=C:\dev\profiler-main\nbbuild\netbeans\profiler3\lib,5140 -Dnbprofiler.agentid=1171412876. Probably the matter is quotes "" inside env variable JAVA_OPTS ( probably other variables which are set for run.bat process ).
This is result of spaces in path. If spaces are present then path are surrounded by quotes. As result bat file fails in lines like >if "x%JAVA_OPTS%" == x ..... See https://jira.jboss.org/jira/browse/JBAS-6725.
changeset: 159427:a7df377e01dd user: Denis Anisimov <ads@netbeans.org> date: Fri Feb 26 14:12:36 2010 +0300 summary: Fix for BZ#179961 - [J2EE] No able to start profiling JBoss 5.1.0
Integrated into 'main-golden', will be available in build *201003050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a7df377e01dd User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#179961 - [J2EE] No able to start profiling JBoss 5.1.0