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/05/18 09:02:45 UTC
[jira] Closed: (GERONIMO-4504) Can't deploy a war to farm
clustering successfully.
[ https://issues.apache.org/jira/browse/GERONIMO-4504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn Jiang closed GERONIMO-4504.
---------------------------------
Resolution: Fixed
<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">
Should be:
<gbean name="org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/farming/2.2-SNAPSHOT/car,j2eeType=GBean,name=NodeInfoB" gbeanInfo="org.apache.geronimo.farm.config.BasicNodeInfo">
For some reason, the j2eeType of BasicNodeInfo in G2.2 becomes "GBean" from "NodeInfo" . Such kind of changes might break prior documentation when j2eeType is involved.
> Can't deploy a war to farm clustering successfully.
> ---------------------------------------------------
>
> Key: GERONIMO-4504
> URL: https://issues.apache.org/jira/browse/GERONIMO-4504
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Clustering
> Affects Versions: 2.2
> Environment: Windows XP SP 2 + IBM SDK 1.5.0
> Reporter: Shawn Jiang
> Priority: Blocker
> Fix For: 2.2
>
>
> 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:
> {code:xml}
> <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>
> {code}
> For Node-B:
> {code:xml}
> <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>
> {code}
> 2, update the var\config\config-substitutions.properties with following farming config info:
> for Node-A:
> {noformat}
> ...
> clusterNodeName=NODE-A
> PortOffset=0
> ...
> {noformat}
> for Node-B:
> {noformat}
> ...
> clusterNodeName=NODE-B
> PortOffset=10
> ...
> {noformat}
> 3, start the server NODE-A AND NODE-B.
> 4, use {noformat}deploy.bat --user system --password manager start org.apache.geronimo.configs/farming//car {noformat} and
> {noformat}deploy.bat --user system --password manager --port 1109 start org.apache.geronimo.configs/farming//car {noformat}
> to start the farming config.
> 5, deploy the the sample cluster war to the cluster with:
> {noformat}
> 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{noformat}
> *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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.