I wrote a simple java agent to instrument some activity in java based web applications using the javassist library.
The problem is when I attach my agent to the jp2launcher process I'm getting ClassNotFoundException thrown because it cannot find the javassist.CtBehavior class.
So I tried running a simple local java application just to test my agent to see if it works and it did.
I tried running another test where I only print "hello" to the java console and attach my agent to the web application, and it did work which only tells me that my agent works.
Do any of you have any idea why it cannot find the javassist when attached to the web application? I already set the classpath to point the javassist.jar on my disk.
Thanks