Details
-
Bug
-
Resolution: Done
-
Minor
-
None
-
7.0.1.Final
-
None
Description
If your custom logging module is not found you get a
09:31:09,669 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.logging.handler.DB: org.jboss.msc.service.StartException in service jboss.logging.handler.DB: custom-handler fi.affecto.osti.fwkint.jbosslogging.DBLogger is not a valid java.util.logging.Handler.
which comes from
final Class<?> handlerClass = Class.forName(className, false, moduleLoader.loadModule(id).getClassLoader());
and caught as a
} catch (ModuleLoadException e) {
throw new StartException(String.format("%s %s is not a valid %s.", CUSTOM_HANDLER, className, Handler.class.getName()), e);
Which means that the module of the logger could not be found but the error message indicates that module and class were found but the class was improper for logging.