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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4.1
    • Component/s: ehcache
    • Labels:
    • Sprint:
      Sprint 4 (Kromeriz)
    • Story Points:
      2
    • Magnolia Release:
      5.4.1

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

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