3 Replies Latest reply on May 24, 2004 8:52 AM by bill.burke

    javassist.NotFoundException: transactional (my annotation)

    mriou

      Hi,

      When I'm starting the annotation compiler I'm getting an exception. I double checked and everything seems to be in my classpath (including the interceptor). Here is the stack :

      [annotationc] Working directory ignored when same JVM is used.
      javassist.NotFoundException: transactional
      at javassist.ClassPool.get(ClassPool.java:372)
      at org.jboss.aop.annotation.compiler.AnnotationInfoCreator.createAnnotationInfo(AnnotationIn
      foCreator.java:158)
      at org.jboss.aop.annotation.compiler.ByteCodeAnnotationCompiler.compileMethod(ByteCodeAnnota
      tionCompiler.java:219)
      at org.jboss.aop.annotation.compiler.ByteCodeAnnotationCompiler.compileClass(ByteCodeAnnotat
      ionCompiler.java:181)
      at org.jboss.aop.annotation.compiler.ByteCodeAnnotationCompiler.compile(ByteCodeAnnotationCo
      mpiler.java:77)
      at org.jboss.aop.annotation.compiler.AnnotationCompiler.compile(AnnotationCompiler.java:46)
      at org.jboss.aop.annotation.compiler.AnnotationCompiler.main(AnnotationCompiler.java:23)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208)
      at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:150)
      at org.apache.tools.ant.taskdefs.Java.run(Java.java:443)
      at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163)
      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
      at org.jboss.aop.ant.AnnotationC.execute(AnnotationC.java:265)

      Any idea ?

        • 1. Re: javassist.NotFoundException: transactional (my annotatio
          bill.burke

          Mriou,

          That is because I have not written any annotations yet for the transaction stuff and you have to use -xml (in ant xml="true") instead (the old annotation stuff).

          I guess what I messed up is that you cannot mix and match these 2 features.

          I guess I need a different syntax for the xml based ones so that they can be put in the same file as bytecode complied ones?

          Bill

          P.S. I did add that Directory feature you wanted with jboss.aop.path

          • 2. Re: javassist.NotFoundException: transactional (my annotatio
            mriou

            I'm not sure I understand your reply. The transaction stuff here is my transaction stuff. I have my own transactional API, declared a @transactional tag in my code and specified an interceptor in jboss-aop.xml that I created. So I felt like I was just in the scope of your example, no ?

            And thanks a lot for adding that directory feature for me, that's really helpful.

            Matt.

            • 3. Re: javassist.NotFoundException: transactional (my annotatio
              bill.burke

              Ok, so you implemented an transaction interface?
              i.e.

              package org.mriou;
              public interface transaction {...}
              


              ???

              If so, you must provide the fully qualified name of the tag within the doclet tag.

              i.e.

              /**
               * @@org.mriou.transaction ("RequiresNew")
               */