Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: commands
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Try to run procun plugin on 3.0, which is used for running geronimo as window service, but failed. Need update.

      1. Warning message.JPG
        79 kB
        Tina Li
      2. G5531.patch
        5 kB
        viola.lu
      3. G5531.patch
        5 kB
        viola.lu

        Activity

        Hide
        Tina Li added a comment -

        Test for the server build of 5/16

        Show
        Tina Li added a comment - Test for the server build of 5/16
        Hide
        Tina Li added a comment -

        Tried on the build :2011.05.16-06:06:48.065+0800-3.0-SNAPSHOT
        env: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480 (JIT enabled, AOT enabled) and windows 7 Sun JVM 1.6.0_20
        Following these steps:
        1.Install "Windows Service Wrapper" plugin
        2.Excute the command: <geronimo_home>\bin\service_pr.bat install
        3.Using the service tool by excuting the cmd: <geronimo_home>\bin\geronimosrvw.exe
        4.Click the button "start" to start the server,but failed and no error message displayed.
        5.Go to "Control Panel"->Administrative Tools->Services to start up the service manaually but displyed the warning message which showed in the enclosed picture for detail.

        Show
        Tina Li added a comment - Tried on the build :2011.05.16-06:06:48.065+0800-3.0-SNAPSHOT env: JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480 (JIT enabled, AOT enabled) and windows 7 Sun JVM 1.6.0_20 Following these steps: 1.Install "Windows Service Wrapper" plugin 2.Excute the command: <geronimo_home>\bin\service_pr.bat install 3.Using the service tool by excuting the cmd: <geronimo_home>\bin\geronimosrvw.exe 4.Click the button "start" to start the server,but failed and no error message displayed. 5.Go to "Control Panel"- >Administrative Tools ->Services to start up the service manaually but displyed the warning message which showed in the enclosed picture for detail.
        Hide
        viola.lu added a comment -

        service.c] [error] 指定的服务已存在, you already installed windows service, you should remove it first, and then install....

        Show
        viola.lu added a comment - service.c] [error] 指定的服务已存在, you already installed windows service, you should remove it first, and then install....
        Hide
        Tina Li added a comment -

        Tried on build 2011.04.28-06:25:55.881+0800-3.0-SNAPSHOT and followed the steps as the doc https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html:
        1.Install "Windows Service Wrapper" plungins
        2.Excute the command :<geronimo_home>\bin\service_pr.bat install
        whether the server is shutdown or not
        3.Then the message displayed on the server console:
        Failed to install "geronimosrv" service. Refer to the log in var/log/geronimosrv.log
        4,Check the "var/log/geronimosrv.log20110428.log"file and found:
        [2011-04-28 16:11:44] [info] Commons Daemon procrun (1.0.2.0) started
        [2011-04-28 16:11:44] [info] Service geronimosrv name Apache Geronimo Service - geronimosrv
        [2011-04-28 16:11:44] [420 service.c] [error] 指定的服务已存在。
        [2011-04-28 16:11:44] [595 prunsrv.c] [error] Failed installing geronimosrv service
        [2011-04-28 16:11:44] [info] Commons Daemon procrun finished.
        5.Check the services of windows itself and can't find this service.

        Show
        Tina Li added a comment - Tried on build 2011.04.28-06:25:55.881+0800-3.0-SNAPSHOT and followed the steps as the doc https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html: 1.Install "Windows Service Wrapper" plungins 2.Excute the command :<geronimo_home>\bin\service_pr.bat install whether the server is shutdown or not 3.Then the message displayed on the server console: Failed to install "geronimosrv" service. Refer to the log in var/log/geronimosrv.log 4,Check the "var/log/geronimosrv.log20110428.log"file and found: [2011-04-28 16:11:44] [info] Commons Daemon procrun (1.0.2.0) started [2011-04-28 16:11:44] [info] Service geronimosrv name Apache Geronimo Service - geronimosrv [2011-04-28 16:11:44] [420 service.c] [error] 指定的服务已存在。 [2011-04-28 16:11:44] [595 prunsrv.c] [error] Failed installing geronimosrv service [2011-04-28 16:11:44] [info] Commons Daemon procrun finished. 5.Check the services of windows itself and can't find this service.
        Hide
        viola.lu added a comment -

        From your log: "Caused by: java.net.BindException: Address already in use: JVM_Bind"
        means 1099 port is already taken by another process. And this test scenario is invalid.
        You should use service to start/stop server, and check whether it's started after restart OS.
        And after start server using service, it should take sometime, not effective right now, you should check geronimo.log file.

        Show
        viola.lu added a comment - From your log: "Caused by: java.net.BindException: Address already in use: JVM_Bind" means 1099 port is already taken by another process. And this test scenario is invalid. You should use service to start/stop server, and check whether it's started after restart OS. And after start server using service, it should take sometime, not effective right now, you should check geronimo.log file.
        Hide
        Tina Li added a comment -

        The above comment I added is in this scenario:
        I have start the server using the command <geronimo_home>/bin startup.bat and then use the service to start the server, although the geronimosrvw.exe tool shows the status of the server is started, the server in fact is not succesully started and the geronimo.log displayed the error:
        2011-03-30 18:09:56,156 ERROR [BlueprintContainerImpl] Unable to start blueprint container for bundle org.apache.karaf.shell.ssh
        org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to intialize bean sshServerFactory
        at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:635)
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:744)
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
        at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)
        at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:624)
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:315)
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
        at java.util.concurrent.FutureTask.run(FutureTask.java:149)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:218)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
        at java.lang.Thread.run(Thread.java:736)
        Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind(Native Method)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:149)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:71)
        at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:251)
        at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48)
        at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:523)
        at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:65)
        at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:407)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        ... 3 more
        2011-03-30 18:09:59,968 INFO [jmx] Starting JMX OSGi agent
        2011-03-30 18:10:00,000 INFO [jmx] Registering MBean with ObjectName [osgi.core:service=permissionadmin,version=1.2] for service with service.id [3]
        2011-03-30 18:10:00,000 INFO [jmx] Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3] for service with service.id [32]
        2011-03-30 18:10:00,156 WARN [RMIRegistryService] RMI Registry failed
        2011-03-30 18:10:00,156 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: JVM_Bind
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:322)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:230)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:405)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:141)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:202)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:104)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:80)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:233)
        at org.apache.geronimo.kernel.rmi.RMIRegistryService.doStart(RMIRegistryService.java:84)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
        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:560)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91)
        at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
        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.daemon.DaemonCLI.main(DaemonCLI.java:32)
        Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:395)
        at java.net.ServerSocket.bind(ServerSocket.java:330)
        at java.net.ServerSocket.<init>(ServerSocket.java:196)
        at org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:661)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:311)
        ... 23 more
        2011-03-30 18:14:34,875 INFO [jmx] Starting JMX OSGi agent
        2011-03-30 18:14:34,906 INFO [jmx] Registering MBean with ObjectName [osgi.core:service=permissionadmin,version=1.2] for service with service.id [3]
        2011-03-30 18:14:34,906 INFO [jmx] Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3] for service with service.id [32]
        2011-03-30 18:14:35,093 WARN [RMIRegistryService] RMI Registry failed
        2011-03-30 18:14:35,093 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: JVM_Bind
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:322)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:230)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:405)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:141)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:202)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:104)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:80)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:233)
        at org.apache.geronimo.kernel.rmi.RMIRegistryService.doStart(RMIRegistryService.java:84)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
        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:560)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211)
        at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91)
        at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
        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.daemon.DaemonCLI.main(DaemonCLI.java:32)
        Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:395)
        at java.net.ServerSocket.bind(ServerSocket.java:330)
        at java.net.ServerSocket.<init>(ServerSocket.java:196)
        at org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:661)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:311)
        ... 23 more
        But just use the server to startup the geronimo server has no problem.

        Show
        Tina Li added a comment - The above comment I added is in this scenario: I have start the server using the command <geronimo_home>/bin startup.bat and then use the service to start the server, although the geronimosrvw.exe tool shows the status of the server is started, the server in fact is not succesully started and the geronimo.log displayed the error: 2011-03-30 18:09:56,156 ERROR [BlueprintContainerImpl] Unable to start blueprint container for bundle org.apache.karaf.shell.ssh org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to intialize bean sshServerFactory at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:635) at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:744) at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64) at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219) at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147) at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:624) at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:315) at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:218) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) at java.lang.Thread.run(Thread.java:736) Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:149) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:71) at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:251) at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48) at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:523) at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:65) at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:407) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) ... 3 more 2011-03-30 18:09:59,968 INFO [jmx] Starting JMX OSGi agent 2011-03-30 18:10:00,000 INFO [jmx] Registering MBean with ObjectName [osgi.core:service=permissionadmin,version=1.2] for service with service.id [3] 2011-03-30 18:10:00,000 INFO [jmx] Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3] for service with service.id [32] 2011-03-30 18:10:00,156 WARN [RMIRegistryService] RMI Registry failed 2011-03-30 18:10:00,156 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: JVM_Bind at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:322) at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:230) at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:405) at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:141) at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:202) at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:104) at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:80) at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:233) at org.apache.geronimo.kernel.rmi.RMIRegistryService.doStart(RMIRegistryService.java:84) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975) 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:560) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702) at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211) at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91) at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107) 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.daemon.DaemonCLI.main(DaemonCLI.java:32) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:395) at java.net.ServerSocket.bind(ServerSocket.java:330) at java.net.ServerSocket.<init>(ServerSocket.java:196) at org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35) at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:661) at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:311) ... 23 more 2011-03-30 18:14:34,875 INFO [jmx] Starting JMX OSGi agent 2011-03-30 18:14:34,906 INFO [jmx] Registering MBean with ObjectName [osgi.core:service=permissionadmin,version=1.2] for service with service.id [3] 2011-03-30 18:14:34,906 INFO [jmx] Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3] for service with service.id [32] 2011-03-30 18:14:35,093 WARN [RMIRegistryService] RMI Registry failed 2011-03-30 18:14:35,093 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: JVM_Bind at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:322) at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:230) at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:405) at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:141) at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:202) at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:104) at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:80) at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:233) at org.apache.geronimo.kernel.rmi.RMIRegistryService.doStart(RMIRegistryService.java:84) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975) 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:560) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702) at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211) at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91) at org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107) 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.daemon.DaemonCLI.main(DaemonCLI.java:32) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:395) at java.net.ServerSocket.bind(ServerSocket.java:330) at java.net.ServerSocket.<init>(ServerSocket.java:196) at org.apache.geronimo.kernel.rmi.GeronimoRMIServerSocketFactory.createServerSocket(GeronimoRMIServerSocketFactory.java:35) at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:661) at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:311) ... 23 more But just use the server to startup the geronimo server has no problem.
        Hide
        Tina Li added a comment -

        Use the build 2011.03.25-07:50:50.807+0800 and JDK environment: IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480 (JIT enabled, AOT enabled).
        Following doc instructions:https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html
        Use the Apache Commons Daemon method and do steps followed the doc。
        After create a service ,and started the geronimo server using this service, it displayed the server has started, but in fact it wasn't started successfully. Stop the server using this service has the same problem.

        Show
        Tina Li added a comment - Use the build 2011.03.25-07:50:50.807+0800 and JDK environment: IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480 (JIT enabled, AOT enabled). Following doc instructions: https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html Use the Apache Commons Daemon method and do steps followed the doc。 After create a service ,and started the geronimo server using this service, it displayed the server has started, but in fact it wasn't started successfully. Stop the server using this service has the same problem.
        Hide
        Tina Li added a comment -

        JDK environment:
        Java(TM) SE Runtime Environment (build pwi3260sr9ifix-20110208_02(SR9+PM18528+IZ90220+IZ94423))
        IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480 (JIT enabled, AOT enabled)

        Show
        Tina Li added a comment - JDK environment: Java(TM) SE Runtime Environment (build pwi3260sr9ifix-20110208_02(SR9+PM18528+IZ90220+IZ94423)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-20101209_70480 (JIT enabled, AOT enabled)
        Hide
        Tina Li added a comment -

        Use the build 2011.03.25-07:50:50.807+0800,IBM J9 VM (build 2.4, JRE 1.6.0 IBM
        09_70480 (JIT enabled, AOT enabled).
        Following doc instructions:https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html
        Use the Java Service Wrapper method and do steps followed the doc:
        When run the command: <geronimo_home>/bin/g_service.bat
        Error displayed in cmd console:
        wrapper | --> Wrapper Started as Console
        wrapper | Java Service Wrapper Community Edition 32-bit 3.5.7
        wrapper | Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved.
        wrapper | http://wrapper.tanukisoftware.com
        wrapper |
        wrapper | Launching a JVM...
        jvm 1 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败
        jvm 1 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g
        eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar
        jvm 1 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa
        in 失败
        jvm 1 | Could not create the Java virtual machine.
        wrapper | JVM exited while loading the application.
        wrapper | Launching a JVM...
        jvm 2 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败
        jvm 2 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g
        eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar
        jvm 2 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa
        in 失败
        jvm 2 | Could not create the Java virtual machine.
        wrapper | JVM exited while loading the application.
        wrapper | Launching a JVM...
        jvm 3 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败
        jvm 3 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g
        eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar
        jvm 3 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa
        in 失败
        jvm 3 | Could not create the Java virtual machine.
        wrapper | JVM exited while loading the application.
        wrapper | Launching a JVM...
        jvm 4 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败
        jvm 4 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g
        eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar
        jvm 4 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa
        in 失败
        jvm 4 | Could not create the Java virtual machine.
        wrapper | JVM exited while loading the application.
        wrapper | Launching a JVM...
        jvm 5 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败
        jvm 5 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g
        eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar
        jvm 5 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa
        in 失败
        jvm 5 | Could not create the Java virtual machine.
        wrapper | JVM exited while loading the application.
        wrapper | There were 5 failed launches in a row, each lasting less than 300 sec
        onds. Giving up.
        wrapper | There may be a configuration problem: please check the logs.
        wrapper | <-- Wrapper Stopped
        请按任意键继续. . .

        Show
        Tina Li added a comment - Use the build 2011.03.25-07:50:50.807+0800,IBM J9 VM (build 2.4, JRE 1.6.0 IBM 09_70480 (JIT enabled, AOT enabled). Following doc instructions: https://cwiki.apache.org/GMOxDOC30/running-geronimo-as-a-windows-service.html Use the Java Service Wrapper method and do steps followed the doc: When run the command: <geronimo_home>/bin/g_service.bat Error displayed in cmd console: wrapper | --> Wrapper Started as Console wrapper | Java Service Wrapper Community Edition 32-bit 3.5.7 wrapper | Copyright (C) 1999-2010 Tanuki Software, Ltd. All Rights Reserved. wrapper | http://wrapper.tanukisoftware.com wrapper | wrapper | Launching a JVM... jvm 1 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败 jvm 1 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar jvm 1 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa in 失败 jvm 1 | Could not create the Java virtual machine. wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 2 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败 jvm 2 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar jvm 2 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa in 失败 jvm 2 | Could not create the Java virtual machine. wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 3 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败 jvm 3 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar jvm 3 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa in 失败 jvm 3 | Could not create the Java virtual machine. wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 4 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败 jvm 4 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar jvm 4 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa in 失败 jvm 4 | Could not create the Java virtual machine. wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 5 | JVMJ9TI003E Agent_OnLoad 对于库 instrument 失败 jvm 5 | Error opening zip file or JAR manifest missing : D:/testServer/0325/g eronimo-tomcat7-javaee6-3.0-SNAPSHOT/bin/jpa.jar jvm 5 | JVMJ9VM015W 在库 j9jvmti24(-3) 中发生初始化错误 JVMJ9VM009E J9VMDllMa in 失败 jvm 5 | Could not create the Java virtual machine. wrapper | JVM exited while loading the application. wrapper | There were 5 failed launches in a row, each lasting less than 300 sec onds. Giving up. wrapper | There may be a configuration problem: please check the logs. wrapper | <-- Wrapper Stopped 请按任意键继续. . .
        Hide
        Shawn Jiang added a comment -

        committed the patch to trunk@r988394, thanks Viola for the patch !

        Show
        Shawn Jiang added a comment - committed the patch to trunk@r988394, thanks Viola for the patch !
        Hide
        viola.lu added a comment -

        remove the typo error geronimo-kernel.jar from manifest file.Pls review it, thanks.

        Show
        viola.lu added a comment - remove the typo error geronimo-kernel.jar from manifest file.Pls review it, thanks.
        Hide
        Shawn Jiang added a comment -

        I see "../lib/geronimo-kernel-2.2.2-SNAPSHOT.jar" in the manifest file, Is that correct ? if we have to include this kind of ../lib/artifct-version.jar in the classpath.

        Instead of hard code the verion, could you please use put the manifest file to filtered-resources and use pom version to dynamically replace the verion ?

        Show
        Shawn Jiang added a comment - I see "../lib/geronimo-kernel-2.2.2-SNAPSHOT.jar" in the manifest file, Is that correct ? if we have to include this kind of ../lib/artifct-version.jar in the classpath. Instead of hard code the verion, could you please use put the manifest file to filtered-resources and use pom version to dynamically replace the verion ?
        Hide
        viola.lu added a comment -

        Remove binary server.jar, and shutdown.jar, now build both from manifest file.
        Pls review it, thanks.

        Show
        viola.lu added a comment - Remove binary server.jar, and shutdown.jar, now build both from manifest file. Pls review it, thanks.
        Hide
        viola.lu added a comment -

        Pls review it ,thanks.

        Show
        viola.lu added a comment - Pls review it ,thanks.

          People

          • Assignee:
            viola.lu
            Reporter:
            viola.lu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development