Geronimo
  1. Geronimo
  2. GERONIMO-3544

Offline deployer busted when adding sharedlib reference into offline-deployer-config.xml

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3, 2.1
    • Component/s: deployment
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Windows XP SP2

    • Regression:
      Regression

      Description

      For EAR applications that have references shared libraries and depend upon the sharedlib config, the offline-deployer-config.xml needs to be modified to add the following line:

      <module name="org.apache.geronimo.configs/sharedlib/2.0.2/car"/>

      This allows for the EAR application to be deployed offline. If this line were not to be added, the offline deployment would fail.

      This was working in Geronimo 2.0.1. As of Geronimo 2.0.2, it seems that adding this line causes the offline deployment process to hang with the following error:


      Exception in thread "main" java.lang.NullPointerException
      at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:138)
      at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:114)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:161)
      at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
      at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
      Deployer operation failed: Module Apache/TestingJMS/1/rar already exists in the server. Try to undeploy it first or use
      the redeploy command.
      org.apache.geronimo.common.DeploymentException: Module Apache/TestingJMS/1/rar already exists in the server. Try to und
      eploy it first or use the redeploy command.
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
      at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
      at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
      at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
      at java.lang.Thread.run(Thread.java:595)
      Completed with id Apache/TestingJMS/1/rar


      Checking the repository and the config.xml shows that the deployment actually succeeds, but then the process hangs with the "already deployed" error above. This error is strange because the specified resource was NOT already deployed.

      I've attached a very simple test case that can reproduce the error.

      1) Unzip the contents into your top-level Geronimo folder
      2) Modify the offline-deployer-config.xml to add the "<module name="org.apache.geronimo.configs/sharedlib/2.0.2/car"/>" configuration.
      3) Execute offline deployment with the following command:

      java -jar bin\deployer.jar --user system --password manager --offline deploy geronimo-activemq-ra-2.0.2.rar jms-dest.xml

      This should reproduce the error.

      1. offline-deployer-bug.zip
        1.52 MB
        Aman Nanner
      2. GERONIMO-3544-2.patch
        2 kB
        Vamsavardhana Reddy
      3. GERONIMO-3544.patch
        2 kB
        Vamsavardhana Reddy

        Issue Links

          Activity

          Hide
          Vamsavardhana Reddy added a comment -

          Quick verification for this JIRA... "deploy.bat --offline list-targets" should list only one configuration store (unless you added an new repository). In 2.0.2, it will list two configration stores.

          Show
          Vamsavardhana Reddy added a comment - Quick verification for this JIRA... "deploy.bat --offline list-targets" should list only one configuration store (unless you added an new repository). In 2.0.2, it will list two configration stores.
          Hide
          Vamsavardhana Reddy added a comment -

          This issue must be automatically fixed now due to the new solution to GERONIMO-3546 in rev 588019. Thanks to David Jencks.

          Aman, please verify the fix. Thank you.

          Show
          Vamsavardhana Reddy added a comment - This issue must be automatically fixed now due to the new solution to GERONIMO-3546 in rev 588019. Thanks to David Jencks. Aman, please verify the fix. Thank you.
          Hide
          Aman Nanner added a comment -

          The deployment is now successful with the second patch!

          Show
          Aman Nanner added a comment - The deployment is now successful with the second patch!
          Hide
          Vamsavardhana Reddy added a comment -

          GERONIMO-3544-2.patch: Changes the dependency on rmi-naming to <import>classes</import> and adds a new dependency j2ee-system. This should eliminate the NCDEF's.

          Show
          Vamsavardhana Reddy added a comment - GERONIMO-3544 -2.patch: Changes the dependency on rmi-naming to <import>classes</import> and adds a new dependency j2ee-system. This should eliminate the NCDEF's.
          Hide
          Vamsavardhana Reddy added a comment -

          How about we change the sharedlibs's dependency on rmi-naming to <import>classes</import> and add another dependency on j2ee-system?

          Show
          Vamsavardhana Reddy added a comment - How about we change the sharedlibs's dependency on rmi-naming to <import>classes</import> and add another dependency on j2ee-system?
          Hide
          Vamsavardhana Reddy added a comment -

          When I change the sharedlib's dependency on rmi-naming to <import>classes</import>, I am getting the following build error:

          [INFO] Packaging module configuration: C:\G\server\tags\2.0.2\configs\sharedlib\target\plan\plan.xml
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Unable to resolve reference "ServerInfo"
          in gbean org.apache.geronimo.configs/sharedlib/2.0.2/car?ServiceModule=org.a
          pache.geronimo.configs/sharedlib/2.0.2/car,j2eeType=GBean,name=SharedLib
          to a gbean matching the pattern [?j2eeType=GBean,name=ServerInfo#org.apache.
          geronimo.system.serverinfo.ServerInfo]
          due to: No matches for referencePatterns: [?j2eeType=GBean,name=ServerInfo#o
          rg.apache.geronimo.system.serverinfo.ServerInfo]

          Show
          Vamsavardhana Reddy added a comment - When I change the sharedlib's dependency on rmi-naming to <import>classes</import>, I am getting the following build error: [INFO] Packaging module configuration: C:\G\server\tags\2.0.2\configs\sharedlib\target\plan\plan.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to resolve reference "ServerInfo" in gbean org.apache.geronimo.configs/sharedlib/2.0.2/car?ServiceModule=org.a pache.geronimo.configs/sharedlib/2.0.2/car,j2eeType=GBean,name=SharedLib to a gbean matching the pattern [?j2eeType=GBean,name=ServerInfo#org.apache. geronimo.system.serverinfo.ServerInfo] due to: No matches for referencePatterns: [?j2eeType=GBean,name=ServerInfo#o rg.apache.geronimo.system.serverinfo.ServerInfo]
          Hide
          Aman Nanner added a comment -

          The testcase now works, but I seem to be running to the problem that David alluded to above when deploying my main application:

          [java] Exception in thread "Thread-6" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
          [java] at java.lang.ClassLoader.defineClass1(Native Method)
          [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
          [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          [java] 13:19:36,473 ERROR [Deployer] Deployment failed due to
          [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)
          [java] java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
          [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308)
          [java] at java.lang.ClassLoader.defineClass1(Native Method)
          [java] at java.security.AccessController.doPrivileged(Native Method)
          [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
          [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260)
          [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:470)
          [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456)
          [java] at java.security.AccessController.doPrivileged(Native Method)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:470)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:407)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverPOJOWebServices(JAXWSServiceBuilder.java:162)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServices(JAXWSServiceBuilder.java:110)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:407)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices(JAXWSServiceBuilder.java:92)
          [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder$$FastClassByCGLIB$$5b2252ff.invoke(<generated>)
          [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          [java] at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverPOJOWebServices(JAXWSServiceBuilder.java:162)
          [java] at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServices(JAXWSServiceBuilder.java:110)
          [java] at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
          [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices(JAXWSServiceBuilder.java:92)
          [java] at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
          [java] at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
          [java] at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
          ......

          Show
          Aman Nanner added a comment - The testcase now works, but I seem to be running to the problem that David alluded to above when deploying my main application: [java] Exception in thread "Thread-6" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet [java] at java.lang.ClassLoader.defineClass1(Native Method) [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [java] 13:19:36,473 ERROR [Deployer] Deployment failed due to [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52) [java] java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308) [java] at java.lang.ClassLoader.defineClass1(Native Method) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260) [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:470) [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:470) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:407) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClassInternal(MultiParentClassLoader.java:456) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverPOJOWebServices(JAXWSServiceBuilder.java:162) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.checkParents(MultiParentClassLoader.java:498) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServices(JAXWSServiceBuilder.java:110) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:407) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices(JAXWSServiceBuilder.java:92) [java] at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder$$FastClassByCGLIB$$5b2252ff.invoke(<generated>) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) [java] at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverPOJOWebServices(JAXWSServiceBuilder.java:162) [java] at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServices(JAXWSServiceBuilder.java:110) [java] at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) [java] at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices(JAXWSServiceBuilder.java:92) [java] at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) [java] at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) [java] at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) ......
          Hide
          David Jencks added a comment -

          Could we make all the dependencies shared-lib have <import>classes</import>? Then it could start without starting anything else. I suspect we want at least the specs jar as a parent or people will be very limited as to what they can put in shared/lib without NCDFEs all over the place.

          Show
          David Jencks added a comment - Could we make all the dependencies shared-lib have <import>classes</import>? Then it could start without starting anything else. I suspect we want at least the specs jar as a parent or people will be very limited as to what they can put in shared/lib without NCDFEs all over the place.
          Hide
          Vamsavardhana Reddy added a comment -

          GERONIMO-3544.patch: Fixes the problem if j2ee-system config is listed as the last entry in offline-deployer-config.xml. The idea is essentially the same, the one I proposed in my first comment. If others have any suggestions, please comment.

          Aman, can you verify the fix?

          Show
          Vamsavardhana Reddy added a comment - GERONIMO-3544 .patch: Fixes the problem if j2ee-system config is listed as the last entry in offline-deployer-config.xml. The idea is essentially the same, the one I proposed in my first comment. If others have any suggestions, please comment. Aman, can you verify the fix?
          Hide
          Vamsavardhana Reddy added a comment -

          Step 2 from the solution suggested in previous comment did not work . It resulted in the following exception.

          18:03:46,703 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=Deployer,name=Deployer"
          java.lang.IllegalStateException: More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
          at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManagerName(ConfigurationUtil.java:307)
          at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:320)
          at org.apache.geronimo.deployment.Deployer.getArtifactResolver(Deployer.java:82)
          at org.apache.geronimo.deployment.Deployer.<init>(Deployer.java:78)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
          at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
          at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
          at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
          at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
          at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
          at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
          at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
          at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
          at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
          at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>)
          at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
          at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
          at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102)
          at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90)
          at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)
          at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
          at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
          at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
          18:03:47,218 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=ConfigBuilder,name=ServiceBuilder"
          java.lang.IllegalStateException: More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
          at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManagerName(ConfigurationUtil.java:307)
          at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:320)
          at org.apache.geronimo.deployment.service.ServiceConfigBuilder.<init>(ServiceConfigBuilder.java:81)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
          at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
          at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
          at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
          at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
          at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
          at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
          at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
          at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
          at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
          at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>)
          at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
          at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
          at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102)
          at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90)
          at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)
          at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
          at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
          at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
          Error: Unexpected error. Cannot start offline-deployer
          org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car failed
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:547)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
          at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
          at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
          at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
          at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
          at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
          at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
          at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>)
          at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
          at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
          at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102)
          at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90)
          at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)
          at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
          at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
          at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
          Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
          at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:514)
          at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
          ... 18 more
          Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car failed to start due to the following reasons:
          The service ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=Deployer,name=Deployer did not start because More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"
          The service ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=ConfigBuilder,name=ServiceBuilder did not start because More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager"

          at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:477)
          ... 20 more

          Show
          Vamsavardhana Reddy added a comment - Step 2 from the solution suggested in previous comment did not work . It resulted in the following exception. 18:03:46,703 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=Deployer,name=Deployer" java.lang.IllegalStateException: More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManagerName(ConfigurationUtil.java:307) at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:320) at org.apache.geronimo.deployment.Deployer.getArtifactResolver(Deployer.java:82) at org.apache.geronimo.deployment.Deployer.<init>(Deployer.java:78) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>) at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121) at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71) at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102) at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90) at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158) at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67) at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) 18:03:47,218 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=ConfigBuilder,name=ServiceBuilder" java.lang.IllegalStateException: More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManagerName(ConfigurationUtil.java:307) at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:320) at org.apache.geronimo.deployment.service.ServiceConfigBuilder.<init>(ServiceConfigBuilder.java:81) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:946) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>) at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121) at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71) at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102) at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90) at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158) at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67) at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) Error: Unexpected error. Cannot start offline-deployer org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:547) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$ff330340.startConfiguration(<generated>) at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121) at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71) at org.apache.geronimo.deployment.cli.ServerConnection.startOfflineDeployer(ServerConnection.java:102) at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:90) at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158) at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67) at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:514) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530) ... 18 more Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car failed to start due to the following reasons: The service ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=Deployer,name=Deployer did not start because More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" The service ServiceModule=org.apache.geronimo.configs/geronimo-gbean-deployer/2.0.2/car,j2eeType=ConfigBuilder,name=ServiceBuilder did not start because More than one Configuration Manager was found in the kernel: "org.apache.geronimo.configs/j2ee-system/2.0.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" "org.apache.geronimo.configs/online-deployer/2.0.2/car?ServiceModule=org.apache.geronimo.configs/online-deployer/2.0.2/car,j2eeType=ConfigurationManager,name=ConfigurationManager" at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:477) ... 20 more
          Hide
          Vamsavardhana Reddy added a comment -

          Deployment is succeeding, but, the code that displays the result bombs. Also, if sharedlib config is added to offline-deployer-config.xml, it will start rmi-naming and this will bomb offline deployment in case of multiple server instances (see GERONIMO-3481).

          Here is why the problem is occurring. When sharedlib is started for offline deployment, it is in turn starting j2ee-system which has a config-store. Now there are two config-stores, one in j2ee-system and another in online-deployer. So, the deployer is trying to deploy it to both the stores and since they refer to the same physical repository, the deployment to the second store is failing with "Module already exists" error.

          Why is it working in G 2.0.1?
          In 2.0.1, j2ee-system was always getting started and the config-store in online-deployer was always getting stopped thus leaving only one config-store for deployment. Once GERONIMO-3481 made j2ee-system to not start, we had to prevent the config-store in online-deployer from getting stopped so that the deployer-has atleast one config-store to work with.

          Suggested solution:
          1. Make sharedlib depend on j2ee-system instead of rmi-naming. All it needs is the "ServerInfo" gbean which is in j2ee-system config.
          2. Make j2ee-system always start for offline deployment irrespective of sharedlib dependency.
          3. Let offline deployer always stop the config-store in online-deployer config (as it works in G 2.0.1).

          Will post a patch soon.

          Show
          Vamsavardhana Reddy added a comment - Deployment is succeeding, but, the code that displays the result bombs. Also, if sharedlib config is added to offline-deployer-config.xml, it will start rmi-naming and this will bomb offline deployment in case of multiple server instances (see GERONIMO-3481 ). Here is why the problem is occurring. When sharedlib is started for offline deployment, it is in turn starting j2ee-system which has a config-store. Now there are two config-stores, one in j2ee-system and another in online-deployer. So, the deployer is trying to deploy it to both the stores and since they refer to the same physical repository, the deployment to the second store is failing with "Module already exists" error. Why is it working in G 2.0.1? In 2.0.1, j2ee-system was always getting started and the config-store in online-deployer was always getting stopped thus leaving only one config-store for deployment. Once GERONIMO-3481 made j2ee-system to not start, we had to prevent the config-store in online-deployer from getting stopped so that the deployer-has atleast one config-store to work with. Suggested solution: 1. Make sharedlib depend on j2ee-system instead of rmi-naming. All it needs is the "ServerInfo" gbean which is in j2ee-system config. 2. Make j2ee-system always start for offline deployment irrespective of sharedlib dependency. 3. Let offline deployer always stop the config-store in online-deployer config (as it works in G 2.0.1). Will post a patch soon.

            People

            • Assignee:
              Vamsavardhana Reddy
              Reporter:
              Aman Nanner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development