Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2296

Unable to setup multiple caches when using EhCache extension

    Details

      Description

      After installing the EhCache extension, you are unable to setup more than 1 cache within the Railo admin if one of the caches utilizes EhCache. If you try to verify the caches, you will receive errors on all except for the original cache that you setup. The error message that you receive in the logs is as follows:

      net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
      1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
      2. Shutdown the earlier cacheManager before creating new one with same name.
      The source of the existing CacheManager is: InputStreamConfigurationSource [stream=java.io.ByteArrayInputStream@c8c164]
      at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:458)
      at net.sf.ehcache.CacheManager.init(CacheManager.java:355)
      at net.sf.ehcache.CacheManager.<init>(CacheManager.java:323)
      at railo.extension.io.cache.eh.EHCache.init(EHCache.java:114)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at railo.runtime.config.ConfigWebFactory.loadCache(ConfigWebFactory.java:2088)
      at railo.runtime.config.ConfigWebFactory.load(ConfigWebFactory.java:354)
      at railo.runtime.config.ConfigServerFactory.load(ConfigServerFactory.java:107)
      at railo.runtime.config.ConfigServerFactory.newInstance(ConfigServerFactory.java:68)
      at railo.runtime.engine.CFMLEngineImpl.getConfigServerImpl(CFMLEngineImpl.java:167)
      at railo.runtime.engine.CFMLEngineImpl.<init>(CFMLEngineImpl.java:103)
      at railo.runtime.engine.CFMLEngineImpl.getInstance(CFMLEngineImpl.java:133)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at railo.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java:627)
      at railo.loader.engine.CFMLEngineFactory.getCore(CFMLEngineFactory.java:297)
      at railo.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:238)
      at railo.loader.engine.CFMLEngineFactory._restart(CFMLEngineFactory.java:356)
      at railo.loader.engine.CFMLEngineFactory.removeLatestUpdate(CFMLEngineFactory.java:498)
      at railo.loader.engine.CFMLEngineFactory.removeLatestUpdate(CFMLEngineFactory.java:464)
      at railo.runtime.config.ConfigWebAdmin._removeUpdate(ConfigWebAdmin.java:2789)
      at railo.runtime.config.ConfigWebAdmin.removeLatestUpdate(ConfigWebAdmin.java:2774)
      at railo.runtime.tag.Admin.doRemoveUpdate(Admin.java:762)
      at railo.runtime.tag.Admin._doStartTag(Admin.java:705)
      at railo.runtime.tag.Admin.doStartTag(Admin.java:318)
      at admin.services_update_cfm414$cf.call(/Users/mic/Projects/Railo/Source2/railo/railo-cfml/railo-admin/admin/services.update.cfm:45)
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801)
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:748)
      at admin.web_cfm$cf.call(/Users/mic/Projects/Railo/Source2/railo/railo-cfml/railo-admin/admin/web.cfm:473)
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801)
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:748)
      at admin.server_cfm$cf.call(/Users/mic/Projects/Railo/Source2/railo/railo-cfml/railo-admin/admin/server.cfm:2)
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:801)
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:753)
      at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:187)
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18)
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2248)
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2215)
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:312)
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:722)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                jbrislin Joe Brislin
              • Votes:
                13 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: