On Mon, Nov 9, 2009 at 8:33 PM, Amit Puri <puri.a...@gmail.com> wrote:

> 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
> -------------------------------------------------------------------------
>

It might be a bug. The module name on the slave node for hello2.war should
be org.geronimo.samples/hello2_G_SLAVE/2.1.1.2/car.

Could you try the scenario that your second web application name is
SecondHello.war, and see what happens?

>
> 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
>

Reply via email to