I'm trying to run Petals ESB on dynamic mode, but it's not working. I don't know what I'm doing wrong.
<br/><br/>There are 2 servers, one is supposed to be the master and the other to be the slave. When I run the master, everything works fine. When I startup the slave, I get the following error:
<br/><br/>java.io.IOException: Cannot bind to URL [rmi://10.252.71.31:7701/jmxRmiConnector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 10.252.71.31; nested exception is:
<br/> java.net.ConnectException: Connection timed out]
<br/> at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
<br/> at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
<br/> at org.ow2.petals.communication.jmx.rmi.RMIConnector.start(RMIConnector.java:148)
<br/> at org.ow2.petals.communication.jmx.rmi.RMIConnector.startFc(RMIConnector.java)
<br/> at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
<br/> at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
<br/> at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
<br/> at org.objectweb.fractal.julia.generated.C4eddf8e0_0.startFc$$0(BasicControllerMixin.java:4097)
<br/> at org.objectweb.fractal.julia.generated.C4eddf8e0_0.startFc(BasicControllerMixin.java:5095)
<br/> at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
<br/> at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:354)
<br/> at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:458)
<br/> at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:175)
<br/> at org.ow2.petals.launcher.AbstractLauncher.start(AbstractLauncher.java:190)
<br/> at org.ow2.petals.launcher.AbstractLauncher.launch(AbstractLauncher.java:147)
<br/> at org.ow2.petals.distribution.platform.Main.main(Main.java:42)
<br/>Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 10.252.71.31; nested exception is:
<br/> java.net.ConnectException: Connection timed out]
<br/> at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
<br/> at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
<br/> at javax.naming.InitialContext.bind(InitialContext.java:400)
<br/> at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
<br/> at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
<br/> ... 14 more
<br/><br/>
<br/><br/><h2>Here are the master config files:</h2><h4>topology.xml (master)</h4><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<br/><topology xmlns="<a href="http://petals.ow2.org/topology">" target="_top" rel="nofollow" link="external">http://petals.ow2.org/topology"></a><br/> <domain name="PEtALS" mode="dynamic"><br/> <description>The static domain configuration</description><br/> <sub-domain mode="master-slave" name="subdomain1"><br/> <description>description of the subdomain</description><br/> <container type="master" name="1"><br/> <description>description of the container 1</description><br/> <host>10.252.71.16</host><br/> <user>petals</user><br/> <password>petals</password><br/> <jmx-service><br/> <rmi-port>7700</rmi-port><br/> </jmx-service><br/> <transport-service><br/> <tcp-port>7800</tcp-port><br/> </transport-service><br/> <registry-service><br/> <port>7900</port><br/> </registry-service><br/> <webservice-service><br/> <port>7600</port><br/> <prefix>petals/ws</prefix><br/> </webservice-service><br/> </container><br/> <container type="slave" name="2"><br/> <description>description of the container 2</description><br/> <host>10.252.71.31</host><br/> <user>petals</user><br/> <password>petals</password><br/> <jmx-service><br/> <rmi-port>7700</rmi-port><br/> </jmx-service><br/> <transport-service><br/> <tcp-port>7800</tcp-port><br/> </transport-service><br/> <registry-service><br/> <port>7900</port><br/> </registry-service><br/> <webservice-service><br/> <port>7600</port><br/> <prefix>petals/ws</prefix><br/> </webservice-service><br/> </container><br/> </sub-domain><br/> </domain><br/></topology><br/><br/><br/><h4>server.properties (master)</h4>petals.container.name=1
<br/><br/><h2>Here are the slave config files:</h2><h4>topology.xml (slave)</h4><?xml version="1.0" encoding="UTF-8"?>
<br/><tns:topology xmlns:tns="<a href="http://petals.ow2.org/topology"" target="_top" rel="nofollow" link="external">http://petals.ow2.org/topology"</a><br/> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance"" target="_top" rel="nofollow" link="external">http://www.w3.org/2001/XMLSchema-instance"</a><br/> xsi:schemaLocation="<a href="http://petals.ow2.org/topology" target="_top" rel="nofollow" link="external">http://petals.ow2.org/topology</a> petalsTopology.xsd"><br/> <tns:domain mode="dynamic" name="PEtALS"><br/> <tns:description>The static domain configuration</tns:description><br/> <tns:sub-domain name="subdomain1" mode="master-slave"><br/> <tns:description>description of the subdomain</tns:description><br/> <tns:container name="1" type="master"><br/> <tns:description>description of the container 1</tns:description><br/> <tns:host>10.252.71.16</tns:host><br/> <tns:user>petals</tns:user><br/> <tns:password>petals</tns:password><br/> <tns:webservice-service><br/> <tns:port>7600</tns:port><br/> <tns:prefix>petals/ws</tns:prefix><br/> </tns:webservice-service><br/> <tns:jmx-service><br/> <tns:rmi-port>7700</tns:rmi-port><br/> </tns:jmx-service><br/> <tns:transport-service><br/> <tns:tcp-port>7800</tns:tcp-port><br/> </tns:transport-service><br/> <tns:registry-service><br/> <tns:port>7900</tns:port><br/> </tns:registry-service><br/> </tns:container><br/>
<br/> <tns:container name="2" type="slave"><br/> <tns:description>description of the container 1</tns:description><br/> <tns:host>10.252.71.31</tns:host><br/> <tns:user>petals</tns:user><br/> <tns:password>petals</tns:password><br/> <tns:webservice-service><br/> <tns:port>7601</tns:port><br/> <tns:prefix>petals/ws</tns:prefix><br/> </tns:webservice-service><br/> <tns:jmx-service><br/> <tns:rmi-port>7701</tns:rmi-port><br/> </tns:jmx-service><br/> <tns:transport-service><br/> <tns:tcp-port>7801</tns:tcp-port><br/> </tns:transport-service><br/> <tns:registry-service><br/> <tns:port>7901</tns:port><br/> </tns:registry-service><br/> </tns:container><br/>
<br/> </tns:sub-domain><br/> </tns:domain><br/></tns:topology><br/><br/><br/><h4>server.properties (slave)</h4>petals.container.name=2
<br/><br/><br/><br/><br/><br/>
        
        <br/>
        <br/>
        <hr noshade="noshade" size="1" color="#cccccc" />
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.petalslink.com/Running-Petals-ESB-on-tp3220563p3220563.html">http://forum.petalslink.com/Running-Petals-ESB-on-tp3220563p3220563.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                To start a new topic under Users (get help, provide help), email ml-node+2681628-1333396262-385891@n3.nabble.com <br/>
                To unsubscribe from Users (get help, provide help), <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4">click here</a>.
        </div>