-
Bug
-
Resolution: Done
-
Major
-
7.1.1.GA
-
None
-
None
There are some Servlets which perform MBean queries during Servlet init where loadOnStartup is set.
For example:
@WebServlet(name = "HttpServiceServlet", urlPatterns = { "/*" }, loadOnStartup = 1) public class MyServlet extends HttpServlet { @Override public void init() throws ServletException { super.init(); MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); try { mBeanServer.queryNames(new ObjectName("*:type=security,area=jmx,*"), null); } catch (MalformedObjectNameException e) { e.printStackTrace(); } } }
Full example here:
https://github.com/jamesnetherton/examples/tree/master/eap/servlet-init-test
When EAP is started with the 'full' profile, this leads to some errors being output from the messaging subsystem:
09:07:36,518 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 69) WFLYCTL0013: Operation ("read-resource-description") failed - address: ([ ("subsystem" => "messaging-activemq"), ("server" => "default"), ("pooled-connection-factory" => "activemq-ra"), ("statistics" => "pool") ]) - failure description: "WFLYCTL0030: No resource definition is registered for address [ (\"subsystem\" => \"messaging-activemq\"), (\"server\" => \"default\"), (\"pooled-connection-factory\" => \"activemq-ra\"), (\"statistics\" => \"pool\") ]" 09:07:36,682 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 69) WFLYCTL0013: Operation ("read-resource-description") failed - address: ([ ("subsystem" => "messaging-activemq"), ("server" => "default"), ("pooled-connection-factory" => "activemq-ra"), ("statistics" => "pool") ]) - failure description: "WFLYCTL0030: No resource definition is registered for address [ (\"subsystem\" => \"messaging-activemq\"), (\"server\" => \"default\"), (\"pooled-connection-factory\" => \"activemq-ra\"), (\"statistics\" => \"pool\") ]"
I tested on WildFly 12 and this issue does not occur.