BTrace with OSGI

  4 posts   Feedicon  
Replies: 3 - Last Post: November 24, 2011 15:56
by: joychester
showing 1 - 4 of 4
 
Posted: April 02, 2011 20:39 by Jaroslav Bachorik
It is necessary to modify OSGI config.properties to contain
org.osgi.framework.bootdelegation=com.sun.btrace, com.sun.btrace.*
 
Posted: June 19, 2011 19:46 by Zdenek Tronicek
In Glassfish 3.0.1, if I have this in config.properties, I can use btrace to monitor my application classes. But it does not work for JEE classes. For example, if I want to monitor EntityManager, I get java.lang.NoClassDefFoundError: btrace1/ServletMonitor. Any idea?
 
Posted: June 23, 2011 14:11 by Jaroslav Bachorik
Not really Frown The trace class is loaded by the bootclassloader so in theory it should be visible from the whole JVM. This seems like the container classes are loaded by a classloader not delegating to the boot class loader - either by mistake or by design.
 
Posted: November 24, 2011 15:56 by joychester
Can you share your Btrace script? Last time I tried to add the package name for the btrace class to solve this problem...
Replies: 3 - Last Post: November 24, 2011 15:56
by: joychester
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close