You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Shawn Jiang (JIRA)" <ji...@apache.org> on 2009/01/07 10:52:44 UTC

[jira] Commented: (GERONIMO-4499) can't use PortOffset in var\config\config-substitutions.properties to start two geronimo instance at the same machine.

    [ https://issues.apache.org/jira/browse/GERONIMO-4499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661506#action_12661506 ] 

Shawn Jiang commented on GERONIMO-4499:
---------------------------------------

I'm quite sure this is caused by  the same activeMQ port setting in 

var\activemq\conf\activemq.xml

{code:xml}
   <transportConnectors>
            <transportConnector name="openwire" uri="tcp://localhost:61616" />
            <!--
            <transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
            <transportConnector name="ssl" uri="ssl://localhost:61617"/>
            <transportConnector name="stomp" uri="stomp://localhost:61613"/>
            <transportConnector name="xmpp" uri="xmpp://localhost:61222"/>
            -->
        </transportConnectors>
{code}

Is there a way to also use the variables defined in config-substitutions.properties in this xml ?

> can't use PortOffset in var\config\config-substitutions.properties to start two geronimo instance at the same machine.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4499
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4499
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.2
>         Environment: Windows XP SP 2 + IBM SDK 1.5.0
>            Reporter: Shawn Jiang
>            Priority: Minor
>
> I'm trying to use PortOffset in var\config\config-substitutions.properties to start two geronimo instance at the same machine.
> 1, install two geronimo server  serverA, serverB.
> 2, update the PortOffset in var\config\config-substitutions.properties from 0 to 10 for serverB.
> 3, start serverA.
> 4, start serverB.
> *expected result*:  Both serverA and serverB could be started without problems.
> *actual result*: serverA started, but server B failed to start with a exception below in log:
> -------------------------------------
> 2009-01-07 17:23:08,562 ERROR [BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind
> java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind
> 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1427)
> 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1886)
> 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1837)
> 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:473)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.