Jaroslav Bachorik
|
Posted: April 02, 2011 20:39 by Jaroslav Bachorik
|
It is necessary to modify OSGI config.properties to containorg.osgi.framework.bootdelegation=com.sun.btrace, com.sun.btrace.* |
BTrace with OSGI
Replies: 3 - Last Post: November 24, 2011 15:56
by: joychester
by: joychester
showing 1 - 4 of 4
Zdenek Tronicek
|
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? |
Jaroslav Bachorik
|
Posted: June 23, 2011 14:11 by Jaroslav Bachorik
|
Not really 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.
|
joychester
|
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
by: joychester


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.






