Red Hat Bugzilla – Bug 1013094
Failing tests of http-binding and rest-binding during "mvn jboss-as:deploy"
Last modified: 2018-03-29 17:51:55 EDT
Failing tests of quickstarts http-binding and rest-binding when executing command: "mvn jboss-as:deploy".
The tests should be skipped or jar should be manualy deployed.
Following exception occurs during test:
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
Test mechanism Time elapsed: 0.009 sec <<< ERROR!
Is this after the application has already been deployed once?
The bump in the version of the jboss-as deploy plugin seems to now include test phase of the Maven lifecycle. We should be able to modify the quickstart to use a config property for the port value in the unit test which is different than the deployed port value.
Simple workaround is to use "mvn -DskipTests jboss-as:deploy"
Sorry, ignore the question about the application being deployed once. I misread the bug description and thought this was about the camel netty binding. We can still update the quickstarts to use a system property for test execution which will cause the standalone netty http server used by HTTP and REST to bind to a different port.
This has been fixed for some time; to deploy a QS on EAP execute 'mvn install -Pdeploy'.