-
1. Re: TreeCacheAop, POJO and ClassNotFoundException
ben.wang Jul 15, 2004 10:09 PM (in response to tolik)Is it possible you can post a test case for me to verify? Als is this a standalone test case? If it is, the junit test suite has one that test the aop cache replication. Can you check it out?
-Ben -
2. Re: TreeCacheAop, POJO and ClassNotFoundException
tolik Jul 18, 2004 1:10 PM (in response to tolik)Hello Ben.
I try to run TreeChaceAop standalone.
run.aopc.batch task runs with AopLRUPolicyUnitTestCase failure only.
But I can't make it to work as separate (not ant) task.
The error happens the same as above does.
Here is the script i use to run the ReplicatedAopTest from JBossCache home dir.#!/bin/sh CACHE_HOME=. sh $CACHE_HOME/build.sh aopc for nextjar in `ls $CACHE_HOME/lib/*.jar` do LIBS=$LIBS:$nextjar done export CLASSPATH=$LIBS:$CACHE_HOME/output/build:$CACHE_HOME/output/etc java junit.swingui.TestRunner org.jboss.test.cache.test.standAloneAop.ReplicatedAopTest
It seems Ant helps to the Cache in some odd way. Can't imagine how. -
3. Re: TreeCacheAop, POJO and ClassNotFoundException
ben.wang Jul 19, 2004 1:00 AM (in response to tolik)You meant if you run it under jboss-cache:
sh build.sh run.aop.examples -Dtest=org.jboss.test.cache.test.eviction.AopLRUPolicyUnitTestCase
It will not fail?
-Ben -
4. Re: TreeCacheAop, POJO and ClassNotFoundException
tolik Jul 19, 2004 2:45 PM (in response to tolik)Hi Ben.
This time i obtained no error of AopLRUPolicyUnitTestCase test in both tasks run.aop.examples and run.aopc.batch.
But CacheTreeAop doesn't really work as standalone app.
Does the script above run the test without exceptions for you? Have you tried it?
if so then my jvm is something wrong with. But it's unlike to be reasone as i get the same result on Linux and Windows platforms. -
5. Re: TreeCacheAop, POJO and ClassNotFoundException
belaban Jul 29, 2004 4:20 AM (in response to tolik)Okay, can you try with the latest JGroups (from CVS head) ?
The change I made is that now, incoming messages that contain objects are un-serializing those objects using the context classloader. This may have caused the problem.
Let me know if this solves your problem.
Bela
P.S.: I'll integrate the new version of JGroups into JBoss in ca. 2 weeks time