Quantcast

plumbr error with jboss7.1.1.Final - java.lang.NoClassDefFoundError: eu/plumbr/agent/instrumentation/AllocationRecorder

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

plumbr error with jboss7.1.1.Final - java.lang.NoClassDefFoundError: eu/plumbr/agent/instrumentation/AllocationRecorder

fiorenzino
Hi,

i would use plumbr with jboss 7, but jboss dies after start.

below the log.

Thanks en advance

Fiorenzo

----------------------------------------------------------
----------------------------------------------------------

fiorenzo@flowerUBU:~/jboss/jboss-as-7.1.1.Final/bin$ ./standalone.sh -c standalone-full.xml -b 0.0.0.0
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/fiorenzo/jboss/jboss-as-7.1.1.Final

  JAVA: java

  JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -agentpath:/home/fiorenzo/JavaTools/plumbr/plumbr/linux/64/libplumbr.so -javaagent:/home/fiorenzo/JavaTools/plumbr/plumbr/plumbr.jar -noverify  -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

=========================================================================

Using System.out as log destination
Plumbr logging started. Version: Plumbr 1.0RC5
*******************************************
* Plumbr (Plumbr 1.0RC5) is started.      *
* Your license is valid for 25 more days. *
*******************************************
Listening for transport dt_socket at address: 8787
Exception in thread "main" java.lang.NoClassDefFoundError: eu/plumbr/agent/instrumentation/AllocationRecorder
        at org.jboss.logmanager.LogManager.<init>(LogManager.java:216)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at java.util.logging.LogManager$1.run(LogManager.java:168)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:157)
        at org.jboss.modules.Main.main(Main.java:275)
Caused by: java.lang.ClassNotFoundException: eu.plumbr.agent.instrumentation.AllocationRecorder from [Module "org.jboss.logmanager:main" from local module loader @7befc208 (roots: /home/fiorenzo/jboss/jboss-as-7.1.1.Final/modules)]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
        ... 11 more
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: Could not initialize class java.util.logging.LogManager
        at java.util.logging.LogManager$Cleaner.run(LogManager.java:211)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plumbr error with jboss7.1.1.Final - java.lang.NoClassDefFoundError: eu/plumbr/agent/instrumentation/AllocationRecorder

fiorenzino
my plumbr env file:


Session: UU2vOXaFTbTLpJpogLUT41fjxRo=
Classpath: /home/fiorenzo/jboss/jboss-as-7.1.1.Final/jboss-modules.jar:/home/fiorenzo/JavaTools/plumbr/plumbr/plumbr.jar
Name: 17362@flowerUBU
VmName: Java HotSpot(TM) 64-Bit Server VM
VmVendor: Sun Microsystems Inc.
VmVersion: 20.5-b03
Java Version: 1.6.0_30
Java Vendor: Sun Microsystems Inc.
OS name: Linux
OS arch: amd64
OS version: 3.0.0-16-generic
Input arguments:
        -XX:+UseCompressedOops
        -XX:+TieredCompilation
        -Xms64m
        -Xmx512m
        -XX:MaxPermSize=256m
        -agentpath:/home/fiorenzo/JavaTools/plumbr/plumbr/linux/64/libplumbr.so
        -javaagent:/home/fiorenzo/JavaTools/plumbr/plumbr/plumbr.jar
        -Xverify:none
        -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
Configuration:
        updateServerUrl=http://app.plumbr.eu
        version=Plumbr 1.0RC5
        httpReport=true
        usageReport=true
        leakEventListeners=eu.plumbr.agent.q,eu.plumbr.agent.AJ
        firstTaggingGeneration=50
        excludePackages=com.bea,org.hamcrest,org.jmock,com.sun,eu.plumbr.agent,java,plumbr,ognl,oracle,sun,weblogic,jrockit,com.oracle.jrockit,bea,com.zeroturnaround
Agent version: Plumbr 1.0RC5
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plumbr error with jboss7.1.1.Final - java.lang.NoClassDefFoundError: eu/plumbr/agent/instrumentation/AllocationRecorder

Nikem
Administrator
Due to modular system of JBoss 7.1, an additional configuration is needed for Plumbr in this case. Please consult this
http://plumbr.eu/support/support-matrix#jboss71
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: plumbr error with jboss7.1.1.Final - java.lang.NoClassDefFoundError: eu/plumbr/agent/instrumentation/AllocationRecorder

fiorenzino
Hi Nikem,

sorry my initial distraction!

You should correct "Platform-specific notes page " on http://plumbr.eu/support/support-matrix#jboss71
for jboss 7.1.1.Final to help plumbr-newbie  like me !

The configuration file should be like this:

if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
   JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,eu.plumbr"
fi
  and after:

 JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -agentpath:/path/to/plumbr/linux/xx/libplumbr.so -javaagent:/path/to/plumbr/plumbr.jar -noverify "


Thanks for your time

Fiorenzo
Loading...