Open arun-gupta opened 9 years ago
this was caused by wrong hostname, right ?
No that was for deployment using shared volumes as explained at: https://github.com/javaee-samples/docker-java/blob/master/chapters/docker-deployment-options.adoc#configure-jboss-developer-studio
This is using the management API as explained at: https://github.com/javaee-samples/docker-java/blob/master/chapters/docker-deployment-options.adoc#deploy-application-using-management-api
okey but by description it looks exactly same.
Beyond hostname also be sure you have managemement enabled on the running server and the ports forwarded.
@robstryker can you take a look at this ?
@robstryker any updates?
Sorry, didn't get a chance yet. Will look into it.
@arun-gupta : I just followed the process outlined in your sample. Upon publish, I get the following error in JBT: JBossTools is unable to verify that the server is up and responsive. java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://172.17.0.6:9990. The connection failed
If I dig deeper in the error-log view, I see many "caused-by" exceptions, the last one being
Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed: DIGEST-MD5: Server rejected authentication at org.jboss.remoting3.remote.ClientConnectionOpenListener.allMechanismsFailed(ClientConnectionOpenListener.java:114) at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:393)
When I go via command-line to a local wf9 installation (wf9 cr1), and run jboss-cli.sh, and "connect 172.17.0.6:9990" I get the following error:
Unable to authenticate against controller at 172.17.0.6:9990: Authentication failed: all available authentication mechanisms failed: DIGEST-MD5: Server rejected authentication
So, IMO, considering the jboss-cli.sh is giving me basically the same error as my UI, I would suggest that maybe your docker image isn't set up with the proper username / password combination?
One other thing you should note: "dockerhost" only works on Mac. For linux, you must actually find the IP address. You can do this by running docker inspect --format '{{ .NetworkSettings.IPAddress }}' CONTAINER_ID where the container id can be found via docker ps -a
This is important to note if you want your example to work for other OS other than mac.
@robstryker dockerhost is not specific to mac at all. dockerhost on OSX like linux and windows need to be setup in /etc/hosts
like any other host name. No magic here.
Sent the following message to @maxandersen and @xcoulon