0 Replies Latest reply on Aug 28, 2006 4:22 AM by emailms box

    class path problems in load-time instrumentation / Weaving

    emailms box Newbie

      after I run in to a dead-end(for now) with compile-time instrumentation / Weaving

      http://jboss.org/index.html?module=bb&op=viewtopic&t=89412


      I tried load-time instrumentation / Weaving
      (using jboss4.0.4sp1, jbosscache1.4sp1 javassist.3.3 1.5jdk 1.5 annotations)
      I'm also having problems.

      I added

      set JAVA_OPTS=%JAVA_OPTS% -Djboss.aop.path=d:/jboss-4.0.4/server/default/conf/jboss-aop.xml
      
      -javaagent:D:/jboss-4.0.4/server/default/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar
      


      but the get
      .
      Exception in thread "main" java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: javassist/ClassPool
       at java.lang.ClassLoader.defineClass1(Native Method)
      


      so I stared to adding jars to the classpath...
      javassist.jar log4j.jar....

      and come to yet again to another dead-end

      help !!