Classloading errors when using BTrace on EAP 6

Solution Unverified - Updated -

Issue

When I attach BTrace to EAP 6 , I can trace common Java classes such as java.lang.Thread. However, when I attempt to access one of my application classes I get a classloader error:

Caused by: java.lang.NoClassDefFoundError: com/example/MyClass
    at com.example.MyHelper.$btrace$com$example$MyClass$func(MyHelper.java)

Environment

Red Hat JBoss Enterprise Application Platform (EAP)

  • 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content