replace CtMethod with javassit.CtMethod or ClassPool.getDefault().importPackage("javassit"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997157#3997157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997157