Hi Francesco Chicchiriccò, Thank you very much for your help. We were able to successfully run Apache Syncope on the WildFly 38 application server within a Docker container. Your support is greatly appreciated. Best regards, Ravi
On 2026/01/20 10:32:56 Francesco Chicchiriccò wrote: > Hi Ravi, > I think that the error is in the way you are specifying the Spring profiles, > please have a look at [1] as indicated by [2]. > > It should work in different ways: > > 1. add > > spring.profiles.active=wildfly,keymaster-client,postgresql > > to core/src/main/resources/core.properties (not application.properties) > > 2. set Wildfly's JAVA_OPTS to include > > -Dspring.profiles.active=wildfly,keymaster-client,postgresql > > 3. define an environment variable for Wildfly as > > SPRING_PROFILES_ACTIVE=wildfly,keymaster-client,postgresql > > > Anyway, I have assembled a working Docker-based sample at [3], which shows > Syncope Core, Console and Enduser 4.0.3 running on Wildfly 38. > > HTH > Regards. > > [1] > https://docs.spring.io/spring-boot/3.4/reference/features/profiles.html#features.profiles.adding-active-profiles > [2] https://syncope.apache.org/docs/4.0/reference-guide.html#wildfly-38 > [3] https://github.com/Tirasa/syncopeOnWildfly > > On 20/01/26 07:09, Ravi Singareddy wrote: > > Hi Francesco Chicchiriccò, > > We have tried with Apache Syncope 3.0.15 in the Wildfly 26. with java 25 > > and received the same error. > > Thanks > > Ravi > > > > "{\"WFLYCTL0080: Failed services\" => > > {\"jboss.deployment.unit.\\\"syncope.war\\\".undertow-deployment\" => > > \"java.lang.RuntimeException: > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > creating bean with name 'keymasterStart': Unsatisfied dependency expressed > > through field 'serviceOps'; nested exception is > > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > > qualifying bean of type > > 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > > expected at least 1 bean which qualifies as autowire candidate. Dependency > > annotations: > > {@org.springframework.beans.factory.annotation.Autowired(required=true)} > > Caused by: java.lang.RuntimeException: > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > creating bean with name 'keymasterStart': Unsatisfied dependency expressed > > through field 'serviceOps'; nested exception is > > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > > qualifying bean of type > > 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > > expected at least 1 bean which qualifies as autowire candidate. Dependency > > annotations: > > {@org.springframework.beans.factory.annotation.Autowired(required=true)} > > Caused by: > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > creating bean with name 'keymasterStart': Unsatisfied dependency expressed > > through field 'serviceOps'; nested exception is > > org.springframework.beans.factory.NoSuchBeanDefinitionException: No > > qualifying bean of type > > 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > > expected at least 1 bean which qualifies as autowire candidate. Dependency > > annotations: > > {@org.springframework.beans.factory.annotation.Autowired(required=true)} > > Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: > > No qualifying bean of type > > 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > > expected at least 1 bean which qualifies as autowire candidate. Dependency > > annotations: {@org.springframework.beans.factory.annotation.Autowired > > > > On 2026/01/19 18:20:19 Ravi Singareddy wrote: > >> Hi Francesco Chicchiriccò > >> We have added the required pom.xml changes as per your documentation. > >> Apache Syncope 4.0.3 - Reference > >> Guide<https://syncope.apache.org/docs/4.0/reference-guide.html#wildfly-38> > >> Added the core-wildfly.properties as > >> # ----------------------------- > >> # WildFly Core configuration > >> # ----------------------------- > >> > >> # Enable Keymaster > >> syncope.core.keymaster.enabled=true > >> syncope.core.keymaster.mode=self > >> keymaster.client.address=http://localhost:9080/syncope > >> > >> # ----------------------------- > >> # Persistence / JPA > >> # ----------------------------- > >> persistence.metaDataFactory=jpa(URLs=\ > >> vfs:/content/${project.build.finalName}.war/WEB-INF/lib/syncope-core-persistence-jpa-${syncope.version}.jar; > >> \ > >> vfs:/content/${project.build.finalName}.war/WEB-INF/lib/syncope-core-self-keymaster-starter-${syncope.version}.jar, > >> \ > >> Resources=##orm##) > >> > >> # ----------------------------- > >> # Database configuration (PostgreSQL) > >> # ----------------------------- > >> database.driver=org.postgresql.Driver > >> database.url=jdbc:postgresql://localhost:5432/syncope_4.0.3 > >> database.username=syncope > >> database.password=syncope > >> > >> # ----------------------------- > >> # JSON / REST configuration > >> # ----------------------------- > >> # (from workflow, JSON profile) > >> json.mapping.enabled=true > >> > >> application.properties as > >> spring.profiles.active=wildfly,keymaster-client,postgresql > >> > >> Still we are getting the following error from the wildfly. Any help in > >> this matter, greatly appreciated. > >> Thanks > >> > >> Ravi > >> > >> "{\"WFLYCTL0080: Failed services\" => > >> {\"org.wildfly.undertow.deployment.default-server.default-host./syncope\" > >> => \"java.lang.RuntimeException: > >> org.springframework.beans.factory.UnsatisfiedDependencyException: Error > >> creating bean with name 'keymasterStart': Unsatisfied dependency expressed > >> through field 'serviceOps': No qualifying bean of type > >> 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > >> expected at least 1 bean which qualifies as autowire candidate. Dependency > >> annotations: > >> {@org.springframework.beans.factory.annotation.Autowired(required=true)} > >> Caused by: java.lang.RuntimeException: > >> org.springframework.beans.factory.UnsatisfiedDependencyException: Error > >> creating bean with name 'keymasterStart': Unsatisfied dependency expressed > >> through field 'serviceOps': No qualifying bean of type > >> 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > >> expected at least 1 bean which qualifies as autowire candidate. Dependency > >> annotations: > >> {@org.springframework.beans.factory.annotation.Autowired(required=true)} > >> Caused by: > >> org.springframework.beans.factory.UnsatisfiedDependencyException: Error > >> creating bean with name 'keymasterStart': Unsatisfied dependency expressed > >> through field 'serviceOps': No qualifying bean of type > >> 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > >> expected at least 1 bean which qualifies as autowire candidate. Dependency > >> annotations: > >> {@org.springframework.beans.factory.annotation.Autowired(required=true)} > >> Caused by: > >> org.springframework.beans.factory.NoSuchBeanDefinitionException: No > >> qualifying bean of type > >> 'org.apache.syncope.common.keymaster.client.api.ServiceOps' available: > >> expected at least 1 bean which qualifies as autowire candidate. Dependency > >> annotations: > >> {@org.springframework.beans.factory.annotation.Autowired(required=true)}\"}}" > >> > >> On 2025/12/31 07:05:47 Francesco Chicchiriccò wrote: > >>> Hi Ravi, > >>> running Syncope 4.0 Core on Wildfly 38 is definitely supported, but > >>> requires a few additional steps as indicated in [1], assuming you are > >>> building your own Maven project following [2]. > >>> > >>> FYI, the test suite is run against Wildfly 38 as part of the GitHub > >>> Actions workflows of Syncope 4_0_X - check [3] for details. > >>> > >>> Regards. > >>> > >>> [1] https://syncope.apache.org/docs/4.0/reference-guide.html#wildfly-38 > >>> [2] > >>> https://syncope.apache.org/docs/4.0/getting-started.html#create-project > >>> [3] > >>> https://github.com/apache/syncope/blob/4_0_X/.github/workflows/fit_Wildfly.yml > >>> > >>> On 31/12/25 03:56, Ravi Singareddy wrote: > >>>> Hi all, > >>>> I am trying to deploy the Syncope WAR on WildFly 38, but the deployment > >>>> fails with the following error. > >>>> Could someone please help me understand the cause or suggest a fix? > >>>> Any help would be greatly appreciated. > >>>> Thanks, > >>>> Ravi > >>>> I > >>>> 21:50:01,314 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 6) > >>>> WELD-000119: Not generating any bean definitions from > >>>> io.swagger.v3.jaxrs2.integration.JaxrsOpenApiContext because of > >>>> underlying class loading error: Type jakarta.ws.rs.core.Application from > >>>> [Module "deployment.syncope.war" from Service Module Loader] not found. > >>>> If this is unexpected, enable DEBUG logging to see the full error. > >>>> 21:50:01,330 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 9) > >>>> WELD-000119: Not generating any bean definitions from > >>>> io.swagger.v3.jaxrs2.SwaggerSerializers because of underlying class > >>>> loading error: Type jakarta.ws.rs.ext.MessageBodyWriter from [Module > >>>> "deployment.syncope.war" from Service Module Loader] not found. If this > >>>> is unexpected, enable DEBUG logging to see the full error. > >>>> 21:50:01,361 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 1) > >>>> WELD-000119: Not generating any bean definitions from > >>>> io.swagger.v3.jaxrs2.integration.JaxrsApplicationAndAnnotationScanner > >>>> because of underlying class loading error: Type > >>>> jakarta.ws.rs.core.Application from [Module "deployment.syncope.war" > >>>> from Service Module Loader] not found. If this is unexpected, enable > >>>> DEBUG logging to see the full error. > >>>> 21:50:01,544 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) > >>>> MSC000001: Failed to start service > >>>> jboss.deployment.unit."syncope.war".component."jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener".WeldInstantiator: > >>>> org.jboss.msc.service.StartException in service > >>>> jboss.deployment.unit."syncope.war".component."jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener".WeldInstantiator: > >>>> Failed to start service > >>>> at > >>>> [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1545) > >>>> at > >>>> [email protected]//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1374) > >>>> at > >>>> [email protected]//org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) > >>>> at > >>>> [email protected]//org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2651) > >>>> at > >>>> [email protected]//org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2630) > >>>> at > >>>> [email protected]//org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1694) > >>>> at > >>>> [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1589) > >>>> at java.base/java.lang.Thread.run(Thread.java:1474) > >>>> Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error > >>>> while loading class > >>>> jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener > >>>> at > >>>> [email protected]//org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:193) > >>>> at > >>>> [email protected]//org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:201) > >>>> at > >>>> [email protected]//org.jboss.weld.resources.ClassTransformer.getEnhancedAnnotatedType(ClassTransformer.java:239) > >>>> at > >>>> [email protected]//org.jboss.as.weld.injection.InjectionTargets.createInjectionTarget(InjectionTargets.java:47) > >>>> at > >>>> [email protected]//org.jboss.as.weld.injection.WeldComponentService.start(WeldComponentService.java:104) > >>>> at > >>>> [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1553) > >>>> at > >>>> [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1516) > >>>> ... 7 more > >>>> Caused by: java.lang.IncompatibleClassChangeError: > >>>> jakarta.servlet.http.HttpServlet and > >>>> jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener disagree on > >>>> InnerClasses attribute > >>>> at java.base/java.lang.Class.getDeclaringClass0(Native Method) > >>>> at java.base/java.lang.Class.getDeclaringClass(Class.java:1611) > >>>> at > >>>> [email protected]//org.jboss.weld.util.reflection.Reflections.checkDeclaringClassLoadable(Reflections.java:431) > >>>> at > >>>> [email protected]//org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.apply(ClassTransformer.java:83) > >>>> at > >>>> [email protected]//org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.apply(ClassTransformer.java:79) > >>>> at > >>>> [email protected]//org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.lambda$new$0(ReentrantMapBackedComputingCache.java:57) > >>>> at > >>>> [email protected]//org.jboss.weld.util.WeakLazyValueHolder$1.computeValue(WeakLazyValueHolder.java:35) > >>>> at > >>>> [email protected]//org.jboss.weld.util.WeakLazyValueHolder.get(WeakLazyValueHolder.java:53) > >>>> at > >>>> [email protected]//org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.getValue(ReentrantMapBackedComputingCache.java:74) > >>>> at > >>>> [email protected]//org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.getCastValue(ReentrantMapBackedComputingCache.java:80) > >>>> at > >>>> [email protected]//org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:184) > >>>> ... 13 more > >>>> > >>>> 21:50:01,589 ERROR [org.jboss.as.controller.management-operation] > >>>> (ServerService Thread Pool -- 169) WFLYCTL0013: Operation > >>>> ("full-replace-deployment") failed - address: ([]) - Stage: (VERIFY) - > >>>> failure description: {"WFLYCTL0080: Failed services" => > >>>> {"jboss.deployment.unit.\"syncope.war\".component.\"jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener\".WeldInstantiator" > >>>> => "Failed to start service > >>>> Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error > >>>> while loading class > >>>> jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener > >>>> Caused by: java.lang.IncompatibleClassChangeError: > >>>> jakarta.servlet.http.HttpServlet and > >>>> jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener disagree on > >>>> InnerClasses attribute"}} > >>>> 21:50:01,622 INFO [org.jboss.as.server] (ServerService Thread Pool -- > >>>> 169) WFLYSRV0016: Replaced deployment "syncope.war" with deployment > >>>> "syncope.war" > >>>> 21:50:01,623 INFO [org.jboss.as.controller] (ServerService Thread Pool > >>>> -- 169) WFLYCTL0183: Service status report > >>>> WFLYCTL0186: Services which failed to start: service > >>>> jboss.deployment.unit."syncope.war".component."jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener".WeldInstantiator: > >>>> Failed to start service > > -- > Francesco Chicchiriccò > > Tirasa - Open Source Excellence > http://www.tirasa.net/ > > Member at The Apache Software Foundation > Syncope, Cocoon, Olingo, CXF, OpenJPA > https://about.me/ilgrosso > >
