更改WSO2-API Manager的默认端口5672

时间:2017-02-03 14:42:46

标签: wso2 wso2esb wso2-am

我们已在服务器上运行Active MQ。因此,我们在运行WSO2时遇到端口冲突。我们在哪里可以更改端口以避免这种冲突。

到目前为止,我们已经完成了以下工作: 1.搜索/ repository / conf下的端口5672的引用,并将5672更改为5673.更改的文件包括broker和jndi。

看起来冲突已解决,但有些服务仍在尝试连接到端口5672.我无法找到更改位置。

[2017-02-03 08:37:36,342]  INFO - QpidServiceComponent WSO2 Message Broker is started.
[2017-02-03 08:37:36,374]  INFO - JMSConnectionFactory JMS ConnectionFactory : Siddhi-JMS-Consumer initialized
[2017-02-03 08:37:36,379]  INFO - JMSTransportHandler Starting jms topic consumer thread...
[2017-02-03 08:37:36,800]  INFO - PassThroughHttpListener Starting Pass-through HTTP Listener...
[2017-02-03 08:37:36,811]  INFO - PassThroughListeningIOReactorManager Pass-through HTTP Listener started on 0:0:0:0:0:0:0:0:8280
[2017-02-03 08:37:36,815]  INFO - PassThroughHttpSSLListener Starting Pass-through HTTPS Listener...
[2017-02-03 08:37:36,825]  INFO - PassThroughListeningIOReactorManager Pass-through HTTPS Listener started on 0:0:0:0:0:0:0:0:8243
[2017-02-03 08:37:37,669]  INFO - AMQConnection Unable to connect to broker at tcp://172.17.51.124:5672
org.wso2.andes.transport.TransportException: Could not open connection
        at org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
        at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
        at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
        at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
        at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:628)
        at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:409)
        at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:351)
        at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:40)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSUtils.createConnection(JMSUtils.java:387)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.checkJMSConnection(JMSListener.java:137)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.start(JMSListener.java:79)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.run(JMSListener.java:186)
        at java.lang.Thread.run(Thread.java:745)
org.wso2.andes.AMQConnectionFailureException: Could not open connection
        at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:486)
        at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:351)
        at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:40)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSUtils.createConnection(JMSUtils.java:387)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.checkJMSConnection(JMSListener.java:137)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.start(JMSListener.java:79)
        at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.run(JMSListener.java:186)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.andes.transport.TransportException: Could not open connection
        at org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
        at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
        at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:130)
        at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
        at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:628)
        at org.wso2.andes.client.AMQConnection.<init>(AMQConnection.java:409)
        ... 7 more
[2017-02-03 08:37:37,750] ERROR - JMSListener Unable to continue server startup as it seems the JMS Provider is not yet started. Please start the JMS provider now.
[2017-02-03 08:37:37,756] ERROR - JMSListener Connection attempt : 1 for JMS Provider failed. Next retry in 20 seconds
[2017-02-03 08:37:39,373]  INFO - CarbonEventManagementService Starting polling event receivers
[2017-02-03 08:37:43,411]  INFO - ThriftDataReceiver Thrift Server started at 0.0.0.0
[2017-02-03 08:37:43,451]  INFO - ThriftDataReceiver Thrift SSL port : 7711
[2017-02-03 08:37:43,468]  INFO - ThriftDataReceiver Thrift port : 7611

1 个答案:

答案 0 :(得分:2)

我们通过使用端口偏移解决了这个问题。无需手动更改端口。 https://docs.wso2.com/display/AM200/Changing+the+Default+Ports+with+Offset