Suddenly (after working fine for some time), WildFly 9.0.1 (and also 9.0.2) seem to have somehow lost the CONSOLE handler for logging.
When trying to debug an application from NetBeans 8.0.2, the Console window shows: ERROR [stderr] (default task-14) Handler java.util.logging.ConsoleHandler is not defined as last entry, and the web application seems to be stuck (before actually starting).
In WildFly's management console, there seems to be a root logger using 2 handlers: CONSOLE and FILE. Both Handlers seem to be existing in standalone-full.xml:
...
<subsystem xmlns="urn:jboss:domain:logging:3.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
...
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
...
</subsystem>
...
When changing config in the management console, I can delete the handlers out of the root logger. Then I can save, but taking them in again seems impossible, since I get the WFLYCTL0158, telling that the handler would not be defined.
java.util.logging.ConsoleHandler
. Are you using a profiler by chance when starting in NetBeans? – Languishment