3 Replies Latest reply on Aug 19, 2005 1:58 AM by ben.wang

    JBossCacheAop in tomcat

    igraf

      Hi,

      How can you run JBossCacheAop in a tomcat environment? Since tomcat requires its own class loading I assume you need to do precompiling for the classes you want to put in the cache, but I can't find documentation for how to do the precompiling.
      Thank you very much,
      Isaac

        • 1. Re: JBossCacheAop in tomcat

          Yes, you can. Just check out the aopc target under build.xml that comes with the distro.

          -Ben

          • 2. Re: JBossCacheAop in tomcat
            igraf

            Thanks very much for replying. I tried to aspectize a class (one class in an existing application and it has a bunch of classes it depends on) using the aopc target example in the build.xml, but I couldn't get it to work. It would inevitably fail at some point saying something like:

            Failed to aspectize class com... Could not find class it references com.. It may not be in your classpath and you may not be getting field and constructor weaving for this class.

            Could you tell me how I need to set the different classpath properties inside the aopc target block?
            i.e. compilerclasspathref, src path, aopclasspath, and classpath elements?

            (I've tried setting all of them to include the all the classes but I always get that error)

            Thanks!
            Isaac

            • 3. Re: JBossCacheAop in tomcat

              The best source for aopc is the JBossAop documentation. See this:
              http://docs.jboss.com/aop/1.3/aspect-framework/reference/en/html/compiling.html

              -Ben