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.
I'm running JBoss 7 and JDK 1.7.0_03-b05. I'm running JVisualVM, which most of the features work very well, but when I try to profile my application then I get the following on the JBoss console: Profiler Agent: Redefining 17 classes at idx 100, out of total 117 16:16:59,195 ERROR [stderr] (server-timer1) Exception in thread "server-timer1"java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr 16:16:59,195 ERROR [stderr] (server-timer1) at org.jboss.sun.net.httpserver.ServerImpl$ServerTimerTask1.run(ServerImpl.java:895) 16:16:59,195 ERROR [stderr] (server-timer1) at java.util.TimerThread.mainLoop(Timer.java:555) 16:16:59,195 ERROR [stderr] (server-timer1) at java.util.TimerThread.run(Timer.java:505) I did a massive search and I could not find anything relevant to my case. I'm really sorry if this is not the right forum to post this question.
Petr, I see you have been assigned this, let me share with you what I already tried. 1- I copy jfluid-serverjar and jfluid-server-15.jar to the the "jboss" lib, also to the "standalone" lib and also to "my web application" lib. I always got the same exception. 2 - I modified JBoss standalone.bat and added this line SET JBOSS_CLASSPATH=%JAVA_HOME%\lib\visualvm\profiler\lib\jfluid-server.jar;%JBOSS_CLASSPATH% and I got the same exception. Please let me know what else I could do to help and I will happy to do so. Regards, Hugo
Tomasi any advice on this? I'm not really familiar with profiler.
You need to modify JBoss startup arguments. JBoss has to be started with "-Djboss.modules.system.pkgs=org.jboss.byteman,org.netbeans.lib.profiler.server" system property.