Hi,
I am currently trying to set up XWiki Enterprise 1.6.1 to use JBossCache in
REPL_ASYNC mode, but I am current experiencing a few issues.
I discovered that the directory structure WEB-INF/cache/jbosscache is not
correct, so I renamed the folder jbosscache to jboss. The default.xml file
had an incorrect tag EvictionConfig instead of the correct
EvictionPolicyConfig.
After fixing the 2 minor issues (tested in LOCAL mode) mentioned above,
nothing can be stored in the cache due to serializable issue, the stack
traces:
With UseLazyDeserialization = true
2009-07-13 12:30:05,080 ERROR [STDERR] org.jboss.cache.CacheException:
java.io.NotSerializableException: Marshalled values can only wrap Objects
that are serializable! Instance of class com.xpn.xwiki.doc.XWikiD
ocument won't Serialize.
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:227)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:480)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCache.set(JBossCacheCache.java:146)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:143)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1271)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1233)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1228)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.calendar.CalendarPlugin.getCalendarEventClass(CalendarPlugin.java:84)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.calendar.CalendarPlugin.init(CalendarPlugin.java:335)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:155)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:92)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:120)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1008)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:727)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.<init>(XWiki.java:655)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:315)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:386)
2009-07-13 12:30:05,081 ERROR [STDERR] at
com.xpn.xwiki.xmlrpc.XWikiReflectiveXmlRpcHandler.execute(XWikiReflectiveXmlRpcHandler.java:85)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:182)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:103)
2009-07-13 12:30:05,081 ERROR [STDERR] at
org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:120)
2009-07-13 12:30:05,081 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
..............
And with UseLazyDeserialization = false
2009-07-13 12:38:57,160 ERROR [STDERR] org.jboss.cache.CacheException:
Unable to invoke method public void org.jboss.cache.RPCManagerImpl.start()
on object instance org.jboss.cache.RPCManagerImpl@1938222
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:127)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:932)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:718)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:582)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:279)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:95)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:79)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCache.initialize(JBossCacheCache.java:101)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.xwiki.cache.jbosscache.internal.JBossCacheCacheFactory.newCache(JBossCacheCacheFactory.java:78)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:99)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.initCache(XWikiCacheStore.java:84)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.store.XWikiCacheStore.<init>(XWikiCacheStore.java:64)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:679)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.<init>(XWiki.java:655)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:315)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:386)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
2009-07-13 12:38:57,161 ERROR [STDERR] at
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
2009-07-13 12:38:57,161 ERROR [STDERR] at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
2009-07-13 12:38:57,162 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
2009-07-13 12:38:57,162 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2009-07-13 12:38:57,162 ERROR [STDERR] at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:94)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2009-07-13 12:38:57,162 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
Has anyone ever managed to get XWiki running with a replicated cache (JBoss
or OSCache) ????
Any help is greatly appreciated.
Cheers,
Andy