在一台机器中使用两个jboss 4.2.2实例时解决已使用的异常

时间:2012-10-25 09:15:45

标签: java jboss jboss-4.2.x

我在一台机器上使用了两个JBoss 4.2.2实例。我已经更改了第二个实例中的所有端口号。仍然在启动第二个实例时显示一个波纹管错误。

  14:28:58,624 WARN  [ServiceController] Problem starting service jboss.mq:service=InvocationLayer,type=UIL2
       java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at java.net.ServerSocket.<init>(ServerSocket.java:194)



 14:29:00,228 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

 --- MBeans waiting for other MBeans ---
 ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
 State: FAILED
 Reason: java.net.BindException: Address already in use
 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
 I Depend On: jboss.mq:service=Invoker

但服务器在两个实例中都已启动。任何人都可以建议如何纠正这个错误。提前谢谢。

2 个答案:

答案 0 :(得分:2)

您是否在jbossmq-service.xml中配置了jboss mq端口?如果没有,请参阅https://community.jboss.org/wiki/ConfigurePorts?_sscc=t

答案 1 :(得分:1)

听起来你仍然有一个端口配置要做(即不使用默认值)MQ服务。

更多信息: