9 Replies Latest reply on Oct 13, 2004 11:08 AM by Clinton Parham

    TreeCache standalone, Tomcat 5.0.28, NoClassDefFoundError

    Clinton Parham Newbie

      Hello,

      I'm trying to use TreeCacheAop/TreeCache functionality from within a
      web app deployed under Tomcat 5.0.28 (JDK1.4.2 and jbosscache 1.1
      with aop 1.0rc1). I'm using the aopc to compile necessary classes (and
      therefore not using org.jboss.aop.standalone.SystemClassLoader)

      This is the error I'm getting:

      java.lang.NoClassDefFoundError: org/jboss/aop/proxy/ClassProxy
       java.lang.ClassLoader.defineClass0(Native Method)
       java.lang.ClassLoader.defineClass(ClassLoader.java:537)
       java.lang.ClassLoader.defineClass(ClassLoader.java:448)
       javassist.ClassPool$SimpleLoader.loadClass(ClassPool.java:244)
       javassist.ClassPool.toClass(ClassPool.java:296)
       javassist.CtClass.toClass(CtClass.java:883)
       org.jboss.aop.proxy.ClassProxyFactory.generateProxy(ClassProxyFactory.java:139)
       org.jboss.aop.proxy.ClassProxyFactory.newInstance(ClassProxyFactory.java:53)
       org.jboss.cache.aop.CollectionInterceptorUtil.getMethodMap(CollectionInterceptorUtil.java:47)
       org.jboss.cache.aop.CachedMapInterceptor.<init>(CachedMapInterceptor.java:31)
       org.jboss.cache.aop.TreeCacheAop.getObject(TreeCacheAop.java:462)
       org.jboss.cache.aop.CacheInterceptor.invoke(CacheInterceptor.java:98)
       com.jcorporate.expresso.core.dbobj.NextNumberImpl$NextNumberImpl_contextMap_19963527_OptimizedGetFieldInvocation.invokeNext(NextNumberImpl$NextNumberImpl_contextMap_19963527_OptimizedGetFieldInvocation.java)
      


      ClassProxy is located in the jboss-aop.jar file and this file is in my
      WEB-INF/lib folder.

      So, my question is: How do I go about correctly
      integrating Tomcat and JBossCache so that required libraries are found
      properly?

      Big Thanks!