You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Kevan Miller (JIRA)" <ji...@apache.org> on 2009/11/13 16:35:39 UTC

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

     [ https://issues.apache.org/jira/browse/GERONIMO-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Miller reassigned GERONIMO-4900:
--------------------------------------

    Assignee: Kevan Miller  (was: Ashish Jain)

> 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: Kevan Miller
>             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="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. 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">false</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  [BasicClusterConfigurationController] Exception while starting configuration [default/ClusterTestEAR_G_SLAVE/1.0/ear] on [NODE-B]. Ignoring.
> org.apache.geronimo.kernel.config.LifecycleException: load of default/ClusterTestEAR_G_SLAVE/1.0/ear failed
> Caused by: 
> org.apache.geronimo.kernel.config.InvalidConfigException: Error starting configuration gbean default/ClusterTestEAR_G_SLAVE/1.0/ear
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:181)
> 	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:313)
> 	... 42 more
> Caused by: 
> org.apache.geronimo.gbean.InvalidConfigurationException: Configuration gbean failed to start default/ClusterTestEAR_G_SLAVE/1.0/ear
> reason: Missing dependency: default/ClusterTestEAR/1.0/ear
> 	at org.apache.geronimo.kernel.config.KernelConfigurationManager.load(KernelConfigurationManager.java:164)
> 	... 43 more
> B) Errors in Geronimo B geronimo.log
> ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/ClusterTestEAR_G_SLAVE/1.0/ear?configurationName=default/ClusterTestEAR_G_SLAVE/1.0/ear"
> org.apache.geronimo.kernel.repository.MissingDependencyException: Missing dependency: default/ClusterTestEAR/1.0/ear
> 	at org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:113)
> 	at org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:410)
> 	at org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:327)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.