Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18182

The Provision Maven Plugin fails due to an uninitialized infinispan cache

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Following the fix on XWIKI-18181, the Maven Provision plugin is still not working in a simple environment. The issue is that the module xwiki-platform-wiki-default relies on a cache, which is handled by infinispan by default (as per https://github.com/xwiki/xwiki-commons/blob/7dc226d7bb29815af9f715277981188c9a3d6a49/xwiki-commons-core/xwiki-commons-cache/xwiki-commons-cache-api/src/main/java/org/xwiki/cache/internal/DefaultCacheManagerConfiguration.java#L47), which will not work without a servlet context.

       

      As such, the following error will be thrown during the plugin execution :

      [ERROR] Failed to execute goal org.xwiki.platform:xwiki-platform-tool-provision-plugin:13.0-SNAPSHOT:install (install) on project auto-deploy: Failed to install Extension(s) into XWiki: Failed to lookup component [org.xwiki.rest.internal.ModelFactory] identified by type [class org.xwiki.rest.internal.ModelFactory] and hint [null]: Failed to lookup component [org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager] identified by type [interface org.xwiki.wiki.descriptor.WikiDescriptorManager] and hint [default]: Failed to lookup component [org.xwiki.wiki.internal.manager.WikiDescriptorCache] identified by type [class org.xwiki.wiki.internal.manager.WikiDescriptorCache] and hint [default]: Failed to initialize wiki descriptor caches [wiki.descriptor.cache.wikiAlias]: Failed to get cache factory for role hint [infinispan]: Failed to lookup component [org.xwiki.cache.infinispan.internal.InfinispanCacheFactory] identified by type [interface org.xwiki.cache.CacheFactory] and hint [infinispan]: The Servlet Environment has not been properly initialized (The Servlet Context is not set) -> [Help 1] 

      Attachments

        Activity

          People

            caubin Clément Aubin
            caubin Clément Aubin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: