1 Reply Latest reply on Aug 12, 2007 11:16 PM by ben.wang

    PojoCache 1.4.1 SP3 and Tomcat

    korimilli

      We are having problmes using the PojoCache (1.4.1 SP3) inside of Tomcat (JDK 5.0). We are doing load-time instrumentation tru the aop.xml.

      We did the following:
      1) prepare the class to be aspectized in the aop.xml configuration
      2) Specify the javaagent = jboss-aop-jdk50.jar path under Tomcat VM arguments
      3) Specify the -Djboss.aop.path = aop.xml path under Tomcat VM arguments

      When we try to put an instance of this class in cache we get an exception saying that "Object type is neither aspectized nor Serializable". We are not sure what we are missing here. Is this a classloading issue? If so, how do we fix it?


      Thanks


        • 1. Re: PojoCache 1.4.1 SP3 and Tomcat

          Any reason that you can't use compile time option instead? Loadtime sometimes has the problem of classpath and loading issue. In addition, it would need to weave all the classes at runtime that can be really slow.