Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-120

Not possible to run two web apps under the same context path within one JVM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.1
    • 5.4
    • ehcache
    • Sprint 4 (Kromeriz)
    • 2

    Description

      When I use our standard deployment configuration (which we've successfuly used from 4.x till latest 5.3.x), the cache module startup for the public instance crashes with net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=#info.magnolia.module.cache.ehcache.EhCacheFactory#cacheManager

      The deployment configuration is that the instances are deployed to webapps/magnoliaAuthor/ROOT and webapps/magnoliaPublic/ROOT, and we have two separate Service definitions in the Tomcat's server.xml, with appBase pointing to webapps/magnoliaAuthor and webapps/magnoliaPublic, respectively.

      Btw. the cache is actually working, but the flushing commands are not.

      The cause (and solution) could be probably similar to these in the old MAGNOLIA-786

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                jchocholacek Jozef Chocholacek
                Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 40m
                      40m