jboss启动时需要查找本机的ip地址,并在该地址上监听指定窗口,如果host条目中没有关于本机地址,包括127.0.0.1和实际的物理ip地址,则启动时会报错,无法找大唯一的端口。
15:10:39,484 ERROR [AbstractKernelController] Error installing to Create: name=TransactionManager state=Configured
com.arjuna.ats.arjuna.exceptions.FatalError: [com.arjuna.ats.internal.arjuna.utils.SocketProcessId_2] - SocketProcessId.getpid could not get unique port.
at com.arjuna.ats.internal.arjuna.utils.SocketProcessId.getpid(SocketProcessId.java:105)
at com.arjuna.ats.arjuna.utils.Utility.getpid(Utility.java:277)
at com.arjuna.ats.arjuna.common.Uid.<init>(Uid.java:105)
at com.arjuna.ats.arjuna.utils.Utility.getProcessUid(Utility.java:289)
at com.arjuna.ats.internal.arjuna.recovery.TransactionStatusManagerItem.<init>
。。。。。。。。
只要在host文件中增加关于本机真实物理地址的描述即可。