Hi,
I've applied the changes to my logmanager-jboss-beans.xml as described here. When I startup my JBoss AS, I get the following error:
ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "Logging:REGISTRATION:Mercurius:Anonymous-0" is missing the following dependencies:
Dependency "JBossLogManagerContextSelectorService" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'JBossLogManagerContextSelectorService' **")
DEPLOYMENTS IN ERROR:
Deployment "JBossLogManagerContextSelectorService" is in error due to the following reason(s): ** NOT FOUND Depends on 'JBossLogManagerContextSelectorService' **
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
The application specific jboss-logging.xml is inside META-INF folde of my application, which is deployed as JAR. The file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<root-logger>
<level name="INFO" />
<handlers>
<handler-ref name="FILE" />
</handlers>
</root-logger>
</logging>
Why is "JBossLogManagerContextSelectorService" the state "missing"?
A more general question: from my SLSB, I refer to the org.jboss.logging.Logger this way:
org.jboss.logging.Logger;
Should it be referenced by annotation instead?