By user12615559 on Aug 04, 2011
Here is a quick tip from Tom Mueller on how to inspect dependencies for jars using the felix gogo shell in Glassfish. Documenting for quick reference in future.
Install glassfish v3.x ( I have tried this with the 3.2 trunk)
telnet localhost 6666
lb -l | grep dol.jar (say I am looking for depencies for dol.jar which is a resolved osgi module)
inspect p c 106
(where 106 is the bundle number for dol.jar from the previous command.)
More information is also available here