I got the same error when trying to deploy to Wildfly (Idea 14.1, Wildfly 9.0.0 Final), but despite the fact that the same JDK did not dare. In my case, the problem was in the configuration of Wildfly standalone.xml.
In <management-interfaces> I had to add the following:
<native-interface security-realm="ManagementRealm"> <socket-binding native="management-native"/> </native-interface>
Also, in the <socket-binding-group> section, I had to add the following:
<socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9990}"/>
After making the above changes, the deployment worked fine, even with inappropriate versions of the Idea / Wildfly JDK.
Please note that in my case the initial deployment gave the same error ("Server is not connected ..."), which makes sense if this socket binding was not configured.
source share