Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4504

Can't deploy a war to farm clustering successfully.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.2
    • 2.2
    • Clustering
    • Security Level: public (Regular issues)
    • None
    • Windows XP SP 2 + IBM SDK 1.5.0

    Description

      I'm trying to farm geronimo using deployment according to http://cwiki.apache.org/GMOxDOC22/farming-using-deployment.html.

      1, install the latest trunk 2.2-snapshot build as nodeA, nodeB

      2, update the var\config\config.xml with following farming config info:

      For Node-A:

      <module name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car" load="false">
              <gbean name="NodeInfo">
                  <attribute name="name">${clusterNodeName}</attribute>
              </gbean>
              <gbean name="ClusterInfo">
                  <attribute name="name">${clusterName}</attribute>
              </gbean>
      		<gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=NodeInfo,name=NodeInfoB" gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
                  <attribute name="name">NODE-B</attribute>
                  <attribute propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor" name="extendedJMXConnectorInfo">
                      <ns:javabean class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo" xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0" xmlns="">
                          <ns:property name="username">system</ns:property>
                          <ns:property name="password">manager</ns:property>
                          <ns:property name="protocol">rmi</ns:property>
                          <ns:property name="host">9.123.237.58</ns:property>
                          <ns:property name="port">1109</ns:property>
                          <ns:property name="urlPath">JMXConnector</ns:property>
                          <ns:property name="local">false</ns:property>
                </ns:javabean></attribute>
              </gbean>
          </module>
      

      For Node-B:

      <module name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car" load="false">
              <gbean name="NodeInfo">
                  <attribute name="name">${clusterNodeName}</attribute>
              </gbean>
              <gbean name="ClusterInfo">
                  <attribute name="name">${clusterName}</attribute>
              </gbean>
      		<gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=NodeInfo,name=NodeInfoA" gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
                  <attribute name="name">NODE-A</attribute>
                  <attribute propertyEditor="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfoEditor" name="extendedJMXConnectorInfo">
                      <ns:javabean class="org.apache.geronimo.farm.config.BasicExtendedJMXConnectorInfo" xmlns:ns4="http://geronimo.apache.org/xml/ns/attributes-1.2" xmlns:ns="http://geronimo.apache.org/xml/ns/deployment/javabean-1.0" xmlns="">
                          <ns:property name="username">system</ns:property>
                          <ns:property name="password">manager</ns:property>
                          <ns:property name="protocol">rmi</ns:property>
                          <ns:property name="host">9.123.237.58</ns:property>
                          <ns:property name="port">1099</ns:property>
                          <ns:property name="urlPath">JMXConnector</ns:property>
                          <ns:property name="local">false</ns:property>
                </ns:javabean></attribute>
              </gbean>
          </module>
      

      2, update the var\config\config-substitutions.properties with following farming config info:

      for Node-A:

      ...
      clusterNodeName=NODE-A
      PortOffset=0
      ...
      

      for Node-B:

      ...
      clusterNodeName=NODE-B
      PortOffset=10
      ...
      

      3, start the server NODE-A AND NODE-B.

      4, use

      deploy.bat --user system --password manager start org.apache.geronimo.configs/farming//car 

      and

      deploy.bat --user system --password manager --port 1109 start org.apache.geronimo.configs/farming//car 

      to start the farming config.

      5, deploy the the sample cluster war to the cluster with:

      deploy.bat --user system --password manager deploy --targets org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=ConfigurationStore,name=MasterConfigurationStore D:\samples\applications\tomcat-clusterservlet-examples-cluster-server1.war servlet-examples-cluster-plan.xml

      expected result: the war will be deployed to both NODE-A AND NODE-B, the console will display the communication log between NODE-A AND NODE-B.

      actual result: the war was only deployed to NODE-A. There's no log in the console of NODE-A AND NODE-B.

      BTW the geronimo 2.1.3 works well with the same deployment steps as above.

      Attachments

        Activity

          People

            Unassigned Unassigned
            genspring Lin Quan Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: