Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1845

Dependencies are missing for Infinispan caches "jpa" and "undertow"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 2018.2.0
    • Fix Version/s: 2018.4.1
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5

      Description

      I tried to upgrade wildfly swarm version to 2018.2.0.Final from 2017.10.0

      After run the server with 2018.2.0.Final, I got following error on my server log

      ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Swarm 2018.2.0.Final (WildFly Core 3.0.8.Final) started (with errors) in 15832ms - Started 316 of 639 services (2 services failed or missing dependencies, 444 services are lazy, passive or on-demand)

      And I checked services via jConsole, Then I found following dump.

      Service "org.wildfly.clustering.infinispan.cache-container-configuration.undertow.activator" (class org.wildfly.swarm.infinispan.runtime.CacheActivator$1) mode ACTIVE state DOWN (PROBLEM) (parent: jboss.as) (dependencies: org.wildfly.clustering.infinispan.cache-container-configuration.undertow) (has unavailable dependency)
      Service "org.wildfly.clustering.infinispan.cache-container-configuration.jpa.activator" (class org.wildfly.swarm.infinispan.runtime.CacheActivator$1) mode ACTIVE state DOWN (PROBLEM) (parent: jboss.as) (dependencies: org.wildfly.clustering.infinispan.cache-container-configuration.jpa) (has unavailable dependency)
      

      I added infinispan cache containers by self

      • server
      • web
      • ejb
      • hibernate

      Seems like they registered by InfinispanCustomizer#undertowActivator and InfinispanCustomizer#jpaActivator They added since 2017.12.0

      InfinispanCustomizer.java

      @Produces
      @ApplicationScoped
      public ServiceActivator undertowActivator() {
          return new CacheActivator("undertow");
      }
      
      @Produces
      @ApplicationScoped
      public ServiceActivator jpaActivator() {
          return new CacheActivator("jpa");
      }
      

      stackoverflow: https://stackoverflow.com/questions/48901818/why-does-swarm-register-jpa-undertow-cache-containers?noredirect=1#comment84815799_48901818

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  daichi_ronn Daichi Itokazu
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: