Hi All Could you please tell me what is the significance of property name="local" in org.apache.geronimo.farm.config.BasicNodeInfo. When I give "local"= true in clustering environment and try to deploy one application, I am getting error like "Configuration already exists". I have also checked cluster-repository dir of app server dir, one new empty dir has been created there.
I have followed these steps: 1. Installed two geronimo instances A and B at different paths 2. Made the following changes to Geronimo A For var\config\config-substitutions.properties clusterNodeName=NODE --> clusterNodeName=NODE-A For var\config\config.xml, add the following contents to module: org.apache.geronimo.configs/farming/2.1.4/car ----------------------------------------------------------------- <gbean name="org.apache.geronimo.configs/farming/2.1.4/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.4/car,j2eeType=NodeInfo,name=NODE-B" 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">localhost</ns:property> <ns:property name="port">1109</ns:property> <ns:property name="urlPath">JMXConnector</ns:property> <ns:property name="local">true</ns:property> </ns:javabean></attribute> </gbean> ----------------------------------------------------------------- 3. Made the following changes to Geronimo B For var\config\config-substitutions.properties clusterNodeName=NODE --> clusterNodeName=NODE-B PortOffset=0 --> PortOffset=10 For var\config\config.xml, add the following contents to module: org.apache.geronimo.configs/farming/2.1.4/car ----------------------------------------------------------------- <gbean name="org.apache.geronimo.configs/farming/2.1.4/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.4/car,j2eeType=NodeInfo,name=NODE-A" 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">localhost</ns:property> <ns:property name="port">1099</ns:property> <ns:property name="urlPath">JMXConnector</ns:property> <ns:property name="local">true</ns:property> </ns:javabean></attribute> </gbean> ----------------------------------------------------------------- 4. Started both Geronimo A and B 5. Ran the following commands in Geronimo_A_Path\bin deploy --user system --password manager start org.apache.geronimo.configs/farming/2.1.4/car deploy --user system --password manager --port 1109 start org.apache.geronimo.configs/farming/2.1.4/car 6. Deployed one sample hello2.war in Geronimo_A_Path\bin deploy --user system --password manager deploy --targets org.apache.geronimo.configs/farming/2.1.4/car?ServiceModule=org.apache.geronimo.configs/farming/2.1.4/car,j2eeType=ConfigurationStore,name=MasterConfigurationStore %PATH_SAMPLE%\hello2.war Getting errors in command prompt: ------------------------------------------------------------------------ Error: Unable to deploy hello2.war: java.io.IOException: See nested See nested Configuration already exists: org.geronimo.samples/hello_G_SLAVE/2.1.1.2/car ------------------------------------------------------------------------- I have checked in the app server dir and new dir %Location%\NODE_A\cluster-repository\org\geronimo is created now but its an empty one. Geronimo_A Log output: 2009-11-09 16:05:46,875 ERROR [RepositoryConfigurationStore] %Location%\NODE_A\cluster-repository\org\geronimo\samples\hello_G_SLAVE\2.1.1.2\hello_G_SLAVE-2.1.1.2.car is not an empty directory 2009-11-09 16:05:47,171 ERROR [Deployer] Deployment failed due to java.io.IOException: See nested at org.apache.geronimo.farm.deployment.BasicClusterConfigurationStoreClient.install(BasicClusterConfigurationStoreClient.java:122) at org.apache.geronimo.farm.deployment.BasicClusterConfigurationStoreClient.install(BasicClusterConfigurationStoreClient.java:78) at org.apache.geronimo.farm.deployment.MasterConfigurationStore.install(MasterConfigurationStore.java:128) Thanks and Regards Amit
