[jira] Commented: (GERONIMO-4900) MissingDependencyException while deploying EAR in Clustering Environment

2009-10-17 Thread Gianny Damour (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12766976#action_12766976
 ] 

Gianny Damour commented on GERONIMO-4900:
-

Hi Ashish, this looks fine. What is the branch you want this patch to be 
applied to?

 MissingDependencyException while deploying EAR in Clustering Environment
 

 Key: GERONIMO-4900
 URL: https://issues.apache.org/jira/browse/GERONIMO-4900
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Clustering
Affects Versions: 2.1.4
Reporter: Amit puri
Assignee: Ashish Jain
 Fix For: 2.1.5

 Attachments: ClusterTestEAR.ear, Geronimo4900.patch


 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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1109/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1099/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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 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
  PATH_SAMPLE\ClusterTestEAR.ear
 Output:
 A) Errors in Geronimo A geronimo.log
  INFO  [BasicClusterConfigurationStoreClient] Upload of configuration 
 [default/ClusterTestEAR_G_SLAVE/1.0/ear] - [File(s) transferred to server.  
 Resuming deployment operation.]
  INFO  

[jira] Commented: (GERONIMO-4900) MissingDependencyException while deploying EAR in Clustering Environment

2009-10-17 Thread Ashish Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12767014#action_12767014
 ] 

Ashish Jain commented on GERONIMO-4900:
---

Hello Gianny,

Thanks for your review!! Please apply this to g 2.1.5 branch.

Thanks
Ashish

 MissingDependencyException while deploying EAR in Clustering Environment
 

 Key: GERONIMO-4900
 URL: https://issues.apache.org/jira/browse/GERONIMO-4900
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Clustering
Affects Versions: 2.1.4
Reporter: Amit puri
Assignee: Ashish Jain
 Fix For: 2.1.5

 Attachments: ClusterTestEAR.ear, Geronimo4900.patch


 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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1109/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1099/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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 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
  PATH_SAMPLE\ClusterTestEAR.ear
 Output:
 A) Errors in Geronimo A geronimo.log
  INFO  [BasicClusterConfigurationStoreClient] Upload of configuration 
 [default/ClusterTestEAR_G_SLAVE/1.0/ear] - [File(s) transferred to server.  
 Resuming deployment operation.]
  INFO  

[jira] Commented: (GERONIMO-4900) MissingDependencyException while deploying EAR in Clustering Environment

2009-10-12 Thread Ashish Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12764582#action_12764582
 ] 

Ashish Jain commented on GERONIMO-4900:
---

I was able to simulate this issue. While debugging I found that 
default/ClusterTestEAR/1.0/ear is being looked onto the master repository, 
cluster repository and repository of instance B. As it does not find it it 
throws a MissingDependencyException. The method being called to resolve this 
dependency is org.apache.geronimo.kernel.config.ConfigurationResolver.resolve.

Added similar breakpoints for WAR module but do not see 
org.apache.geronimo.kernel.config.ConfigurationResolver.resolve this method 
being called.

Is this a supported scenario to deploy an EAR?? Or this only works with a WAR 
module??

 MissingDependencyException while deploying EAR in Clustering Environment
 

 Key: GERONIMO-4900
 URL: https://issues.apache.org/jira/browse/GERONIMO-4900
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Clustering
Affects Versions: 2.1.4
Reporter: Amit puri
Assignee: Ashish Jain
 Attachments: ClusterTestEAR.ear


 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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1109/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1099/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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 ClusterTestEAR.ear in Geronimo_A_Path\bin
 deploy --user system --password manager deploy 

[jira] Commented: (GERONIMO-4900) MissingDependencyException while deploying EAR in Clustering Environment

2009-10-12 Thread Gianny Damour (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12764643#action_12764643
 ] 

Gianny Damour commented on GERONIMO-4900:
-

This problem is due to the modification of configuration names (suffix 
'_G_SLAVE'  is added to base name) happening during farm deployment.

GERONIMO-4556, which should have been included in 2.1.4, addresses this 
problem. In a few words, configuration names are no longer updated.

 MissingDependencyException while deploying EAR in Clustering Environment
 

 Key: GERONIMO-4900
 URL: https://issues.apache.org/jira/browse/GERONIMO-4900
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Clustering
Affects Versions: 2.1.4
Reporter: Amit puri
Assignee: Ashish Jain
 Attachments: ClusterTestEAR.ear


 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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1109/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1099/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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 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
  PATH_SAMPLE\ClusterTestEAR.ear
 Output:
 A) Errors in Geronimo A geronimo.log
  INFO  [BasicClusterConfigurationStoreClient] Upload of 

[jira] Commented: (GERONIMO-4900) MissingDependencyException while deploying EAR in Clustering Environment

2009-10-12 Thread Ashish Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12764661#action_12764661
 ] 

Ashish Jain commented on GERONIMO-4900:
---

Helllo Gianny, thanks for pointing this out. I feel that the fix for 
GERONIMO-4556 did not make to g214. I have the code for g214 tags and I am not 
able to see this revision applied to it.. I tried applying the revision 
http://svn.apache.org/viewvc?view=revrevision=748991 to my g214 code  base but 
I see several un resolved imports in MasterConfigurationStore.java related to 
gbean annotations. A few of them I am listing here.


 MissingDependencyException while deploying EAR in Clustering Environment
 

 Key: GERONIMO-4900
 URL: https://issues.apache.org/jira/browse/GERONIMO-4900
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Clustering
Affects Versions: 2.1.4
Reporter: Amit puri
Assignee: Ashish Jain
 Attachments: ClusterTestEAR.ear


 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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1109/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1099/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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 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
 

[jira] Commented: (GERONIMO-4900) MissingDependencyException while deploying EAR in Clustering Environment

2009-10-12 Thread Ashish Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12764662#action_12764662
 ] 

Ashish Jain commented on GERONIMO-4900:
---

import org.apache.geronimo.gbean.annotation.GBean;
import org.apache.geronimo.gbean.annotation.ParamAttribute;
import org.apache.geronimo.gbean.annotation.ParamReference;
import org.apache.geronimo.gbean.annotation.ParamSpecial;
import org.apache.geronimo.gbean.annotation.SpecialAttributeType;

Please advice.

 MissingDependencyException while deploying EAR in Clustering Environment
 

 Key: GERONIMO-4900
 URL: https://issues.apache.org/jira/browse/GERONIMO-4900
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Clustering
Affects Versions: 2.1.4
Reporter: Amit puri
Assignee: Ashish Jain
 Attachments: ClusterTestEAR.ear


 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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1109/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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=nameNODE-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=usernamesystem/ns:property
 ns:property name=passwordmanager/ns:property
 ns:property name=protocolrmi/ns:property
 ns:property name=hostlocalhost/ns:property
 ns:property name=port1099/ns:property
 ns:property name=urlPathJMXConnector/ns:property
 ns:property name=localfalse/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 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
  PATH_SAMPLE\ClusterTestEAR.ear
 Output:
 A) Errors in Geronimo A geronimo.log
  INFO