This content has been marked as final.
Show 3 replies
-
1. Re: JBossCache AOP and JDK 5.0 annotations
ben.wang Dec 21, 2005 11:44 AM (in response to mnasato)Yes, you can do that. But we need to support oth JDK 1.4 and JDK 1.5. So it needs some extra work. Besides, I want to hide the xml from the user totally.
-Ben -
2. Re: JBossCache AOP and JDK 5.0 annotations
joereger Jan 4, 2006 11:00 PM (in response to mnasato)Hi mnasato!
Can you give an example of how you marked up your POJOs as Cacheable? I'm fairly new to AOP. I have:@Cacheable public class Banner { ... }
I'm getting some trouble with the apoc ant task. It's likely a misconfiguration of the ant task, but I wanted to see if I could rule out bad annotation first. Here's what's in my ant script, for reference:<aopc compilerclasspathref="lib.classpath" verbose="true"> <classpath path="${compiled.files}"/> <src path="${compiled.files}"/> <include name="**/*.class"/> <aoppath path="${sourcedir}/WEB-INF/jboss-aop.xml"/> </aopc>
The error is:Exception in thread "main" java.lang.NoSuchFieldError: doPruning at org.jboss.aop.AOPClassPool.<clinit>(AOPClassPool.java:34) at org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:552) ...
Thanks for any help,
Joe -
3. Re: JBossCache AOP and JDK 5.0 annotations
joereger Jan 4, 2006 11:25 PM (in response to mnasato)Looks like the javassist.jar I had was missing the javassist.ClassPool.doPruning property. I believe I had an old version. I downloaded the latest from jboss.org. Sorry for the trouble... it appears to be compiling properly now. As mnsato said, very easy to do... if you have the right libraries installed :)