You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Juan Pablo Santos Rodríguez (JIRA)" <ji...@apache.org> on 2014/04/20 23:31:15 UTC

[jira] [Resolved] (JSPWIKI-832) [Portable] Problems setting up multiple wikis using a shared JSPWiki libraries

     [ https://issues.apache.org/jira/browse/JSPWIKI-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juan Pablo Santos Rodríguez resolved JSPWIKI-832.
-------------------------------------------------

    Resolution: Fixed

applied the patch on 2.10.1-svn-14, thanks!

> [Portable] 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
>
>         Attachments: JSPWIKI-832_Problems_setting_up_multiple_wikis_using_a_shared_JSPWiki_libraries.patch
>
>
> 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)