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

Ehcache fails to start if the same physical webapp is reused multiple times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.4
    • 5.4
    • ehcache
    • debian amd64
    • Yes
    • Kromeriz 34
    • 3

    Description

      Hello,

      first of all: This configuration is working on Magnolia 5.3.

      the bundle is built on top of 5.4.4 CE empty-webapp.

      I have a tomcat configured using the same application twice. First as author and second as public instance. the instances are several services as you can see in server.xml After starting the first instance, the second failes to start the ehcache module.

      — error ----
      net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=/opt/data/tomcat-apps/netbank-webapp-release#info.magnolia.module.cache.ehcache.EhCacheFactory#cacheManager
      — / error ----

      the logfile entrie looks like there is an problem using the same "physical" application.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              rkovarik Roman Kovařík
              shelas Stephan Helas
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 3h
                    3h