Geronimo
  1. Geronimo
  2. GERONIMO-6233

--offline option does not work when server is started

    Details

    • Patch Info:
      Patch Available
    • Regression:
      Regression

      Description

      1. Start the default server runtime
      2. Run testsuite/commands-testsuite/deploy: mvn clean install -Dit -e -o
      3. Some tests failed with this exception:

      testListAllModules(org.apache.geronimo.testsuite.deploy.DeployerOfflineTest) Time elapsed: 11.14 sec <<< FAILURE!
      java.lang.AssertionError: list-modules failed : Using GERONIMO_HOME: /home/forrestxm/src/asf/geronimo/server/trunk/assemblies/geronimo-tomcat7-javaee6/target/geronimo-tomcat7-javaee6-3.0-SNAPSHOT
      Using GERONIMO_TMPDIR: var/temp
      Using JRE_HOME: /opt/sun/jdk1.6.0_29/jre
      2011-12-13 07:21:39,215 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car,j2eeType=GBean,name=RMIRegistry"
      java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
      java.net.BindException: Address already in use
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
      at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
      at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:188)
      at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:100)
      at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:76)
      at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:222)
      at org.apache.geronimo.kernel.rmi.RMIRegistryService.doStart(RMIRegistryService.java:84)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
      at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
      at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
      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.OfflineServerConnection.startOfflineDeployer(OfflineServerConnection.java:58)
      at org.apache.geronimo.deployment.cli.OfflineServerConnection.<init>(OfflineServerConnection.java:41)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:165)
      at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
      at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
      at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
      Caused by: java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
      at java.net.ServerSocket.bind(ServerSocket.java:328)
      at java.net.ServerSocket.<init>(ServerSocket.java:194)
      at org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
      at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
      ... 27 more
      2011-12-13 07:21:39,320 ERROR [DeployTool] Error:
      org.apache.geronimo.common.DeploymentException: Unexpected error. Cannot start offline-deployer
      at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:76)
      at org.apache.geronimo.deployment.cli.OfflineServerConnection.startOfflineDeployer(OfflineServerConnection.java:58)
      at org.apache.geronimo.deployment.cli.OfflineServerConnection.<init>(OfflineServerConnection.java:41)
      at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:165)
      at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
      at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
      at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
      at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
      Caused by: org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.configs/openwebbeans-deployer/3.0-SNAPSHOT/car failed
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:718)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
      at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.startPersistentOfflineConfigurations(OfflineDeployerStarter.java:121)
      at org.apache.geronimo.deployment.cli.OfflineDeployerStarter.start(OfflineDeployerStarter.java:71)
      ... 7 more
      Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:527)
      at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
      ... 10 more

      1. fix_6233.patch
        20 kB
        Saphen Qiu

        Issue Links

          Activity

          Hide
          Saphen Qiu added a comment -

          Fixed GERONIMO-6233 --offline option does not work when server is started

          Show
          Saphen Qiu added a comment - Fixed GERONIMO-6233 --offline option does not work when server is started
          Hide
          Saphen Qiu added a comment -

          Patch is attached

          Show
          Saphen Qiu added a comment - Patch is attached
          Hide
          Forrest Xia added a comment -

          Saphen, thank you for this patch. One question here, can we not change g-m-p bahavior on failIfNotStarted? so that keep consistent as before.

          Show
          Forrest Xia added a comment - Saphen, thank you for this patch. One question here, can we not change g-m-p bahavior on failIfNotStarted? so that keep consistent as before.
          Hide
          Jarek Gawor added a comment -

          I committed some changes in revision 1331869 that make offline option work for me. Please verify my fix. The key is to ensure that rmi-naming dependency does not actually start with offline deployer.

          Show
          Jarek Gawor added a comment - I committed some changes in revision 1331869 that make offline option work for me. Please verify my fix. The key is to ensure that rmi-naming dependency does not actually start with offline deployer.
          Hide
          Forrest Xia added a comment -

          The issue is fixed by Jarek, thanks!

          Show
          Forrest Xia added a comment - The issue is fixed by Jarek, thanks!

            People

            • Assignee:
              Saphen Qiu
              Reporter:
              Forrest Xia
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development