Siegfried Goeschl created JSPWIKI-832:
-----------------------------------------
Summary: Problems setting up multiple wikis using a shared JSPWiki
libraries
Key: JSPWIKI-832
URL: https://issues.apache.org/jira/browse/JSPWIKI-832
Project: JSPWiki
Issue Type: Task
Components: Core & storage
Affects Versions: 2.10
Reporter: Siegfried Goeschl
Fix For: 2.10.1
For “jspwiki-portable” I try to
* run the JSPWiki libraries and its dependencies from CATALINA_HOME/lib
* run the wiki pages from a separate WAR whereas each WAR contains the required
configuration files
AFAIK that worked with JSPWiki 2.9.x but is broken for the current trunk :-(
The main problem seems to be that EHCache Manager is only available once for
the whole Tomcat and therefore the same caches are used for multiple wikis.
What I'm trying to do is the following
{noformat}
String documentCacheName = engine.getApplicationName() + "." +
DOCUMENTCACHE_NAME;
if (m_cacheManager.cacheExists(documentCacheName)) {
m_documentCache = m_cacheManager.getCache(documentCacheName);
} else {
log.info("cache with name " + documentCacheName + " not found in
ehcache.xml, creating it with defaults.");
m_documentCache = new Cache(documentCacheName, DEFAULT_CACHESIZE,
false, false, m_cacheExpiryPeriod, m_cacheExpiryPeriod);
m_cacheManager.addCache(m_documentCache);
}
{noformat}
which is to use a prefix for the cache based on the application name
--
This message was sent by Atlassian JIRA
(v6.2#6252)