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 :
>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 .....
user: Denis Anisimov <email@example.com>
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)
User: Denis Anisimov <firstname.lastname@example.org>
Log: Fix for BZ#179961 - [J2EE] No able to start profiling JBoss 5.1.0