JBoss Community

Re: -javaagent problem

created by loupi loupi in JBoss AOP - View the full discussion

Hi,

here's the error :

java.lang.NoClassDefFoundError: javassist/scopedpool/ScopedClassPoolFactory

    at java.lang.Class.getDeclaredMethods0(Native Method)

    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)

    at java.lang.Class.getMethod0(Class.java:2670)

    at java.lang.Class.getMethod(Class.java:1603)

    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:294)

    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)

Caused by: java.lang.ClassNotFoundException: javassist.scopedpool.ScopedClassPoolFactory

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

    ... 6 more

FATAL ERROR in native method: processing of -javaagent failed

Exception in thread "main"

 

Question: Why javaagent work in a single example, must i make some configurations??

PLEASE,  I really need your help!!

Reply to this message by going to Community

Start a new discussion in JBoss AOP at Community