]
RH Bugzilla Integration commented on WFCORE-1499:
-------------------------------------------------
Peter Palaga <ppalaga(a)redhat.com> changed the Status of [bug
logging custom-handler does not load module with slot
-----------------------------------------------------
Key: WFCORE-1499
URL:
https://issues.jboss.org/browse/WFCORE-1499
Project: WildFly Core
Issue Type: Bug
Components: Logging
Reporter: Erwan Lacoste
Assignee: James Perkins
Fix For: 2.2.0.CR1, 3.0.0.Alpha1
Tested on EAP 6.4
when creating a module for a custom *loghandler*, everything works fine if the module is
package in default main slot, e.g.
my/loghandler/main
- module.xml
- my.jar
{code:xml}
<custom-handler name="4H" class="my.handler.Periodic4HFileHandler"
module="my.loghandler">
{code}
Nevertheless I want to version the module, therefore package my module with a given
slot:
my/loghandler/1.0
- module.xml
- my.jar
{code:xml}
<custom-handler name="4H" class="my.handler.Periodic4HFileHandler"
module="my.loghandler:1.0">
{code}
But this fails with following stacktrace:
{code}
11:53:50,458 ERROR [org.jboss.as.controller.management-operation] (Controller Boot
Thread) JBAS014612: Operation ("add") failed - address: ([
("subsystem" => "logging"),
("custom-handler" => "4H")
]): java.lang.IllegalArgumentException: JBAS011532: Failed to load module
'my.loghandler:1.0' for handler '4H'
at
org.jboss.as.logging.HandlerOperations$HandlerAddOperationStepHandler.createHandlerConfiguration(HandlerOperations.java:320)
[jboss-as-logging-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.logging.HandlerOperations$HandlerAddOperationStepHandler.performRuntime(HandlerOperations.java:255)
[jboss-as-logging-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.logging.LoggingOperations$LoggingAddOperationStepHandler$1.execute(LoggingOperations.java:206)
[jboss-as-logging-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:702)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:537)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:338)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:314)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1144)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:416)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:301)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.server.ServerService.boot(ServerService.java:355)
[jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.server.ServerService.boot(ServerService.java:330)
[jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:263)
[jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_65]
Caused by: org.jboss.modules.ModuleNotFoundException: my.loghandler:1.0:main
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240)
[jboss-modules.jar:1.3.6.Final-redhat-1]
at
org.jboss.as.logging.HandlerOperations$HandlerAddOperationStepHandler.createHandlerConfiguration(HandlerOperations.java:295)
[jboss-as-logging-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
... 13 more
{code}
why is the module not found being *my.loghandler:1.0:main* ?