1 Reply Latest reply on Nov 4, 2005 1:39 PM by Manik Surtani

    TreeCache and POJOs?

    mark beckworth Newbie

      I saw a post from 10/31 regarding the ability to use TreeCache (not TreeCacheAop) for caching pojo's.

      My cache is set up as synchronous and shared. When I try to cache a custom bean (in Eclipse) - I get the following error:

      org.jboss.util.NestedRuntimeException: java.lang.ClassNotFoundException: com.thebbk.distributedcache.SomeBean; - nested throwable: (java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: com.dexmedia.distributedcache.SomeBean)
      at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4344)
      at org.jboss.cache.TreeCache.put(TreeCache.java:3010)
      at org.jboss.cache.TreeCache.put(TreeCache.java:2995)

      I assume this is beacause the bean cannot be found. It is in the classpath within the context of Eclipse, is there some other place I need to set the classpath so JBossCache will see the bean?