geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Puri <puri.a...@gmail.com>
Subject Farm Deployment Error if deploy more than one applications
Date Tue, 27 Oct 2009 12:46:39 GMT
Hello All

I am facing in deploying more than one applications in farming deployment.
This issue is same as JIRA Geronimo-4892, Here this issue is defined wrt
Geronimo 2.2 but I am facing it in Geronimo 2.1.4 as well. I am giving here
steps to recreate the problem.

1. Install two geronimo instances A and B at different paths

2. Make 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">false</ns:property>
</ns:javabean></attribute>
</gbean>
-----------------------------------------------------------------

3. Make 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">false</ns:property>
</ns:javabean></attribute>
</gbean>
-----------------------------------------------------------------

4. Start both Geronimo A and B

5. Run 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. Deploy first sample servlet-examples-cluster-server1.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
C:\z\wasce_samples-2.1.1.2\applications\tomcat-cluster\servlet-examples-cluster-server1.war
%Sample_HOME%\applications\tomcat-cluster\servlet-examples-cluster-plan.xml

successfully deployed

7. Deploy second sample ClusterTestEAR.ear 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
%Sample_HOME%\applications\hello\target\hello2.war

Getting error like this
 Error: Operation failed: start of
 com.ibm.wasce.samples/hello/2.1.1.2/car failed

     org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean
 already registered: geronimo:J2EEServer=geronimo,nodeName=NODE-B

     GBean already registered:
 geronimo:J2EEServer=geronimo,nodeName=NODE-B

Here Application get deployed on all the cluster members but didnt start
because of this error. When I started the second application from Admin
console of individual server instances, it started fine. Please help in this
issue.

Thanks
Amit Puri

Mime
View raw message