标签:efault myeclipse add plain socket jvm init myeclips ssi
在myeclipse中,启动JBoss4.2.3,出现地址绑定异常,在server.xml中改了8080端口号,也没有用,一样报这个错?
22:38:09,766 WARN [ServiceController] Problem starting service jboss.mq:service=InvocationLayer,type=UIL2
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:170)
at org.jboss.mq.il.uil2.UILServerILService.startService(UILServerILService.java:225)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
--- MBeans waiting for other MBeans ---
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
State: FAILED
Reason: java.net.BindException: Address already in use: JVM_Bind
I Depend On:
jboss.mq:service=Invoker
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
State: FAILED
Reason: java.net.BindException: Address already in use: JVM_Bind
I Depend On:
jboss.mq:service=Invoker
解决方案:
1.
你看看错误提示,不是指WEB的端口被占用,是JMS的端口被占了,
更改JMS端口
\deploy\jms\uil2-service.xml文件
<mbean code="org.jboss.mq.il.uil2.UILServerILService"
name="jboss.mq:service=InvocationLayer,type=UIL2">
<attribute name="ServerBindPort">8093</attribute>
</mbean>
2.
重复启动项目,占用相同端口和地址
java.net.BindException: Address already in use: JVM_Bind
标签:efault myeclipse add plain socket jvm init myeclips ssi
原文地址:https://www.cnblogs.com/firstdream/p/9307510.html