i had two jboss server starting in the same time... i found the same issue in this link https://community.jboss.org/message/649881
even if i didn t have the same exeption ("java.net.BindException: Address already in use: JVM_Bind localhost/127.0.0.1:8080) i actually
had both jboss versions 5 and 7 starting in the same time(it is mentionned in the command prompt when i type ant start.demo)
and had the jboss AS 7 welcome page displaying in my localhost:8080. so i changed the build.xml like this (i ve commented the <antcall target="start.jboss5" /> and its "implementation" ):
<!-- Start JBoss AS -->
<target name="start.jboss">
<!--<antcall target="start.jboss5" />-->
<antcall target="start.jboss7" />
</target>
<target name="start.jboss7" depends="check.jboss.version" if="jboss.version.is.7">
<property name="jboss.full.path.win" location="${jboss.home}/bin/standalone.bat" />
<exec executable="${jboss.full.path.win}" spawn="yes"
osfamily="windows">
<env key="JAVA_OPTS" value="-XX:MaxPermSize=256m -Xms256m -Xmx512m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
<arg value="-Djbpm.console.directory=${install.home}/sample/evaluation/src/main/resources" />
<arg value="-Dreporting.needcontext=true" />
</exec>
<property name="jboss.full.path.linux" location="${jboss.home}/bin/standalone.sh" />
<exec executable="${jboss.full.path.linux}" spawn="yes" osfamily="unix">
<env key="JAVA_OPTS" value="-XX:MaxPermSize=256m -Xms256m -Xmx512m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
<arg value="-Djbpm.console.directory=${install.home}/sample/evaluation/src/main/resources" />
<arg value="-Dreporting.needcontext=true" />
</exec>
<waitfor maxwait="5" maxwaitunit="minute" checkevery="10"
checkeveryunit="second" timeoutproperty="jboss.timeout">
<socket server="${jboss.bind.address}" port="8080" />
</waitfor>
<fail if="jboss.timeout" message="JBoss AS7 did not start within 5 minutes"/>
</target>
<!--<target name="start.jboss5" depends="check.jboss.version" unless="jboss.version.is.7">
<property name="jboss.full.path.win" location="${jboss.home}/bin/run.bat" />
<exec executable="${jboss.full.path.win}" spawn="yes"
osfamily="windows">
<env key="JAVA_OPTS" value="-XX:MaxPermSize=256m -Xms256m -Xmx512m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
<arg value="-Djbpm.console.directory=${install.home}/sample/evaluation/src/main/resources" />
</exec>
<property name="jboss.full.path.linux" location="${jboss.home}/bin/run.sh" />
<exec executable="${jboss.full.path.linux}" spawn="yes" osfamily="unix">
<env key="JAVA_OPTS" value="-XX:MaxPermSize=256m -Xms256m -Xmx512m" />
<arg value="-b" />
<arg value="${jboss.bind.address}" />
<arg value="-Djbpm.console.directory=${install.home}/sample/evaluation/src/main/resources" />
</exec>
<waitfor maxwait="10" maxwaitunit="minute" checkevery="30"
checkeveryunit="second" timeoutproperty="jboss.timeout">
<socket server="${jboss.bind.address}" port="8080" />
</waitfor>
<fail if="jboss.timeout" message="JBoss AS5 did not start within 10 minutes"/>
</target>-->
But still cant access to the http://localhost:8080/jbpm-console !!
help please !!