-
Bug
-
Resolution: Done
-
Critical
-
30.0.0.Final
-
None
-
---
-
---
Executing the following command:
/subsystem=undertow/servlet-container=default/setting=affinity-cookie:add(name=ARR){allow-resource-service-restart=true}
results in the following:
11:37:06,180 ERROR [org.jboss.as.controller.management-operation] (pool-10-thread-1) WFLYCTL0013: Operation ("add") failed - address: ([ ("subsystem" => "undertow"), ("servlet-container" => "default"), ("setting" => "affinity-cookie") ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.undertow.servlet-container.default is already registered at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceRegistrationImpl.set(ServiceRegistrationImpl.java:135) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:233) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:744) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:149) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:1866) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:149) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:1866) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:186) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.OperationContextImpl.installService(OperationContextImpl.java:2063) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.OperationContextImpl$2$1.installService(OperationContextImpl.java:777) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:2190) at org.jboss.msc@1.5.0.Final//org.jboss.msc.service.DelegatingServiceBuilder.install(DelegatingServiceBuilder.java:89) at org.wildfly.extension.undertow@29.0.0.Alpha1-SNAPSHOT//org.wildfly.extension.undertow.ServletContainerAdd.installRuntimeServices(ServletContainerAdd.java:293) at org.wildfly.extension.undertow@29.0.0.Alpha1-SNAPSHOT//org.wildfly.extension.undertow.AbstractCookieDefinition$SessionCookieAdd.recreateParentService(AbstractCookieDefinition.java:132) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.RestartParentResourceHandlerBase$1.execute(RestartParentResourceHandlerBase.java:72) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1045) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:777) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:466) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1435) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:448) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerImpl.lambda$executeForResponse$0(ModelControllerImpl.java:259) at org.wildfly.security.elytron-base@2.1.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304) at org.wildfly.security.elytron-base@2.1.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerImpl.executeForResponse(ModelControllerImpl.java:259) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerImpl.executeOperation(ModelControllerImpl.java:253) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.executeInModelControllerCl(ModelControllerClientFactoryImpl.java:275) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.lambda$runOperation$0(ModelControllerClientFactoryImpl.java:265) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.SecurityActions$InVmActions$1.runInVm(SecurityActions.java:103) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.SecurityActions.runInVm(SecurityActions.java:47) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.runOperation(ModelControllerClientFactoryImpl.java:265) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:215) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:210) at org.wildfly.security.elytron-base@2.1.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304) at org.wildfly.security.elytron-base@2.1.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:175) at org.jboss.as.controller@20.0.1.Final//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2.run(ModelControllerClientFactoryImpl.java:210) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)
In fact, any operation on a child resource of an Undertow servlet container will throw the same exception for the same reason.
- is caused by
-
WFCORE-6365 RestartParent OperationStepHandler implementations are incompatible with service built via CapabilityServiceTarget
- Closed