Hi there,
I am trying to deploy application.
If I start AS with war file there I get exception:
Caused by: javax.management.InstanceNotFoundException: WFLYJMX0017: No MBean found with name jboss.as:interface=mz-201
at org.jboss.as.jmx.model.ResourceAccessControlUtil.getResourceAccessWithInstanceNotFoundExceptionIfNotAccessible(ResourceAccessControlUtil.java:72)
at org.jboss.as.jmx.model.ModelControllerMBeanHelper.setAttribute(ModelControllerMBeanHelper.java:322)
at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.setAttribute(ModelControllerMBeanServerPlugin.java:227)
at org.jboss.as.jmx.PluggableMBeanServerImpl.setAttribute(PluggableMBeanServerImpl.java:1035)
at org.jboss.as.jmx.BlockingNotificationMBeanServer.setAttribute(BlockingNotificationMBeanServer.java:158)
at org.jboss.remotingjmx.protocol.v2.ServerProxy$SetAttributeHandler.handle(ServerProxy.java:1150) [jboss-client.jar:10.0.0.Final]
at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153) [jboss-client.jar:10.0.0.Final]
at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:75)
at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:70)
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_131]
at javax.security.auth.Subject.doAs(Subject.java:422) [rt.jar:1.8.0_131]
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:92)
at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:70)
at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149) [jboss-client.jar:10.0.0.Final]
if I add war file after start AS I d'not have this exception.
BR,
Konstantin
run your task in separate thread.
While you are in boot some services are not available from inside deploy action yet.