java.net.BindException: Can not assign requested address: JVM_Bind: 8080 solution

When Jboss start being given the wrong information is as follows:
13: 03: 40,875 ERROR [Http11Protocol] Error Initializing Endpoint
java.net.BindException: Can not assign requested address: JVM_Bind : 8080

In fact, just look java.net.BindException: Can not assign requested address: JVM_Bind : 8080
. the information on it
at the time the company is a good start, but returned home to die.
then is to find a solution on the network, searched and searched, a lot of friends that is because the port is occupied, but I reboot machines, all software can be turned off are off, from Explorer can turn off all the processes are closed, and then use the netstat -nao View all ports do not see 8080 port ah. (I use Windows operating system), depressed ah. occasional online to find an article http://hi.baidu.com/higkoo/blog/item/2fc696248281c9348644f9eb.html
this is to use the Linux operating system, but to my great inspiration.
I find jboss-4.2.2.GA-oa / server / default / deploy / jboss-web.deployer following server.xml file, view a content below
<Connector port = "8080" address = "$ {0.0.0.0 } "   
         the maxThreads = "250" maxHttpHeaderSize = "8192"
         emptySessionPath = "to true" Protocol = "the HTTP / 1.1"
         enableLookups = "to false" the redirectPort = "8443" acceptCount to = "100"
         connectionTimeout = "20000" disableUploadTimeout = "to true" the URIEncoding = " UTF-8 "/>

where address =" $ {0.0.0.0} "this line is very important, as I recall, it had to turn over, it is to make opening Jboss, I understand that, in the company, the local computer can be found computer peripherals exist, so Jboss can run up, but after returning home, because only one computer outside the network does not exist, I mean other computer peripherals within the LAN, as Jboss can not find other computers, so set external access invalid, leading to not start. the 0.0.0.0 removed, write address = "$ {}" ok.
of course, different environments may have different problems, but this is a thinking, I hope to have this issue with friends helpful.
I also sent a copy on other sites, but it is definitely original.

Guess you like

Origin blog.csdn.net/gs80140/article/details/5796698