WildFly 8.1: Server is not connected. Deployment Unavailable

I am running WildFly 8.1 on IntelliJ 14. The server is starting up and available at localhost:8080 . The artifact is deployed and the website can be opened.

BUT

As soon as I go, I get:

The server is not connected. Deployment Unavailable

Nothing is written on server.log

Ideas?

+5
source share
6 answers

Make sure your IP address in stanalone.xml is set to 127.0.0.1 :).

It works:).

+1
source

I fixed the problem:

You need to run the exact same jdk on Wildfly and IntelliJ. Since I use MacOS and used apple 1.6 jdk to develop IntelliJ and Oracle JDK 7 and Wildfly, so this did not work. I switched my IntelliJ to Oracle JDK 7 and now it deploys and works.

The same problem is described here: http://devnet.jetbrains.com/message/5502042#5502042

And here the knowledge base entry on how to switch IntelliJ JDK is done under: https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under

0
source

Ensure that the wildfly management interface is connected to localhost / 127.0.0.1 as well

0
source

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.

0
source

The same error occurs if (in IDEA) your wildfly user / password is wrong. To change the user / password in IDEA, open the "Application Servers" view, edit the configuration of your WildFly server and check the username and password on the "Server" tab.

0
source

If you use standalone-full.xml instead of the standard standalone.xml file, pass this environment variable:

 -Djboss.server.default.config=standalone-full.xml 

enter image description here

instead of passing arguments when running the script:

 ...\standalone.bat --server-config=standalone-full.xml 

Strike>


If you use standalone-full.xml and not standalone.xml by default, just delete the standalone.xml file and rename standalone-full.xml to standalone.xml. The following problem was solved for me :)

The server is not connected. Deployment Unavailable

0
source

Source: https://habr.com/ru/post/1202244/


All Articles