"bwang00" wrote : OK, I think I know why. I have been using the latest jboss-head
library. And it ran fine. The culprit is javassist.jar library. It seems it has that
problem bundled in JBossCache1.1 release (I was able to re-produce your problem).
|
| Can you update the library from the lat
"bwang00" wrote : I have tested your example and it worked for me!
|
| I am also running Tomcat5.0.28 and JBossCache1.1. Before I ran your example, I
copied the libraries from jboss-cache/lib to ROOT/WEB-INF/lib. E.g., jboss-*.jar,
trove.jar, javassist.jar, etc.
|
| After I ran index2.j
"bwang00" wrote : I have downloaded Tomcat and am ready to look at this problem. Do
you happen to have an example that you can send me so I can see it myself?
|
| Please send it to [EMAIL PROTECTED]
|
| Thanks,
|
| -Ben
I have put together a sample application that produces the err
"bwang00" wrote : I will need to take a look myself to see why.
|
| -Ben
Looking forward to hearing back! Please don't forget about me Ben :)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850284#3850284
Reply to the post :
http://www.jboss.org/index.ht
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
Thanks for the info. Where can I find a list of what API TreeCacheAop supports and
what it doesn't?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848956#3848956
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848956
I'm trying to figure this one out:
Person person = new Person();
| person.setHobbies(new HashMap());
| Iterator i = person.getHobbies().values().iterator();
|
| Util.getClusterCache().putObject("/test", person);
| person = (Person)Util.getClusterCache().getObject("/test");
|
| i =
Some more info...
I've even reverted to using the org.jboss.test.cache.test.standAloneAop.Person instead
of UnOrderedCache (setting -Djboss.aop.path=...path...\jboss-aop.xml) and I still get
the same errors.
These jars have been added to the tomcat/common/endorsed folder to support
org.jboss.a
"bwang00" wrote : Well, the log says obj is non-advisable:
|
| | 2004-09-14 17:23:38,946 DEBUG [main] aop.TreeCacheAop (TreeCacheAop.java:281)
- putObject(): obj is non-advisable.
| | 2004-09-14 17:23:38,946 DEBUG [main] cache.TreeCache (TreeCache.java:2336) -
_put(null, "/aop/expresso
"bwang00" wrote : Forget about the map and list. Why don't you do a putObject on
UnderedCache to see if it gets replicated correctly?
|
| -Ben
Same problem. Here's the updated code I'm running:
if(Util.getClusterCache().exists("/aop/expresso/CacheManager/cacheLists")){
| } else {
|
"bwang00" wrote : You will still need jboss-aop to declare your object,
UnOrderedCache, to be aspectized. Otherwise, aop will treat it as a regular object of
which requires Serializable, and furthermore will not breakdown the object graph for
UnOrderedCache.
|
| -Ben
Thanks for your feedba
... one additional comment. 'cachelists' in the code sample is a Map instance to which
an UnOrderedCache instance is added
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847974#3847974
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&
Scenario:
Server A starts up and adds a Map to the cache using this code
| ...
| private static TreeCacheAop treeCache;
| public static synchronized TreeCacheAop getClusterCache(){
| if(treeCache == null){
| try {
| treeCache = new TreeCacheAop();
13 matches
Mail list logo