java.net.BindException: Address already in use: Cannot bind

在启动JBoss 5的过程中老是报错:

java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind(Native Method)
at java.net.DatagramSocket.bind(DatagramSocket.java:340)

 

解决办法:

这是由于端口占用造成的,但这个异常却没有指明具体占用的端口号码。实际占用的端口是1162.

查询1162端口被哪个进程占用,杀掉进程即可解决这个问题。

 

The port in Q is 1162. Also if you do not need snmp services, remove the "snmp-adaptor.sar" under the deploy dir.

 

http://community.jboss.org/message/186457

你可能感兴趣的:(jboss)