4 Replies Latest reply on May 20, 2010 5:45 AM by jcraane

    Snapshot directory empty

      After installing and configuring JBoss profiler 2 beta 5 onto Jboss Application Server 5.1.0 I got a ClassNotFoundException on org.jboss.profiler.shared.Command when interacting with the profiler command line client to the server. I resolved this issue by placing the jboss-profiler.jar in the server/default/lib directory.
      But when I start profiling and take a snapshot with the command line client, the snapshot directory is created but no snapshot information is available. The command line client almost returns immediatly and nothing is visible in the server logs. A similar problem is described here but no solution is available: https://community.jboss.org/thread/105216?tstart=60
      If you need more information please let me know. Thanks in advance.
        • 1. Re: Snapshot directory empty

          You should follow the installation chapter in the documentation and put the jboss-profiler.jar file in the bin directory and do


          -javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties


          in your run.conf file.



          • 2. Re: Snapshot directory empty

            Thanks for your answer. I actually did modify the run.conf file and put the jboss-profiler.jar, jboss-profiler.properties, jboss-common.jar and jboss-profiler-plugins.jar in the bin directory. When I execute 'java -jar jboss-profiler-client.jar startProfiler' I get the following exceptioin in the JBoss server log file:



            20:53:35,411 ERROR [ServerThread] WorkerThread#0[] exception occu
            rred during first invocation
            java.lang.ClassNotFoundException: org.jboss.profiler.shared.Command
                    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
                    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
                    at java.lang.Class.forName0(Native Method)
                    at java.lang.Class.forName(Class.java:242)


            This class is actually in the jboss-profiler.jar.

            • 3. Re: Snapshot directory empty

              Ok, I'll take a look. I'm assuming that you are using 5.1.0.GA.

              • 4. Re: Snapshot directory empty

                I am indeed using 5.1.0.GA.