2 Replies Latest reply on Nov 20, 2008 8:34 AM by dermas

    AOPC Error: java.lang.NoSuchMethodError: org.jboss.aop.Aspec

    dermas

      I am trying to upgrade jboss-aop-1.5.6.GA to 2.0.0.GA.
      Currently I am using the following libs in my eclipse project:

      - trove.jar
      - javassist.jar
      - jboss-aop-jdk50.jar

      In order to upgrade, I replaced those jars with the three new ones. But when I execute the aopc precompile task, I get the following error:

      <!-- my precompile task -->
      <path id="jboss.aop.classpath">
       <pathelement location="lib/jboss-aop-jdk50.jar"/>
      </path>
      
      <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="jboss.aop.classpath"/>
      
      The Error:
      
      [aopc] java.lang.NoSuchMethodError: org.jboss.aop.AspectManager.getBindingCollection()Lorg/jboss/aop/advice/ClassifiedBindingAndPointcutCollection;
      
      


      Any ideas what I am doing wrong?

        • 1. Re: AOPC Error: java.lang.NoSuchMethodError: org.jboss.aop.A
          flavia.rainone

          Yes, apparently there is an old jar in your classpath.

          The method that cannot be found, has been added in 2.0.GA. So, apparently you have 2.0.GA code calling 2.0.GA code but, for classpath reasons, it finds 1.5.6.GA code instead, and this code lacks the new method.

          Try to check if you have any references left pointing to the old version of JBoss AOP.

          • 2. Re: AOPC Error: java.lang.NoSuchMethodError: org.jboss.aop.A
            dermas

            Yap, I have a Jbossall-client.jar in my classpath, which has an Aspectmanager inside. I deleted it from the jar and now the error is gone.
            But I get other errors. Seems that the 2.0.0. GA release needs more libs than 1.5.6. GA. For example the jboss-mdr.jar is needed...