Profiler Agent: -agentpath:/profilerinterface should be called with two parameters: Profiler Agent: path to Profiler agent libraries and port number, separated by comma, for example: Profiler Agent: java -agentpath:/mypath/profilerinterface=/home/me/nb-profiler-server/profiler-ea-libs,5140 Error occurred during initialization of VM agent library failed to init: C:\Program Files\NetBeans 7.2 Beta\profiler\lib\deployed\jdk16\windows-amd64\profilerinterface.dll Profiler Agent: Initializing... Profiler Agent: Options: >C:\Program< ant -f C:\\Users\\jskrivanek\\Documents\\NetBeansProjects\\WebApplication4 "-Drun.jvmargs.ide= -agentpath:\"C:/Program Files/NetBeans 7.2 Beta/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\"=\"C:\\Program Files\\NetBeans 7.2 Beta\\profiler\\lib\",5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\\Users\\jskrivanek\\Documents\\NetBeansProjects\\WebApplication4\\nbproject\\private\\profiler " -DforceRedeploy=false -Ddirectory.deployment.supported=true profile profile: init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Starting GlassFish Server 3.1.2 GlassFish Server 3.1.2 is running. In-place deployment at C:\Users\jskrivanek\Documents\NetBeansProjects\WebApplication4\build\web Initializing... deploy?DEFAULT=C:\Users\jskrivanek\Documents\NetBeansProjects\WebApplication4\build\web&name=WebApplication4&contextroot=/WebApplication4&force=true failed. Instance is not GlassFish Server 3.1.2. C:\Users\jskrivanek\Documents\NetBeansProjects\WebApplication4\nbproject\build-impl.xml:1172: The following error occurred while executing this line: C:\Users\jskrivanek\Documents\NetBeansProjects\WebApplication4\nbproject\build-impl.xml:1167: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 58 seconds)