Results 1 to 3 of 3

Thread: how to use btrace in osgi & spring dm

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    Default how to use btrace in osgi & spring dm

    I used to btrace as trace tool before,after use spring dm,btrace can not work.
    It always throw ClassNotDef exception.
    anyone can help me?

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Not really however try to find out how to use btrace inside OSGi. Potentially you could just start btrace over the entire VM that uses OSGi rather then embedded it inside OSGi.
    Most likely you need to use an agent of some sort to hook into the classes loaded by OSGi.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Feb 2011
    Posts
    1

    Default OSGI bootdelegation

    Modify your OSGI config.properties to contain
    org.osgi.framework.bootdelegation=com.sun.btrace, com.sun.btrace.*

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •