Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1788

TomEE fails to start embedded ActiveMQ

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: TomEE Core Server
    • Labels:
      None

      Description

      When trying to start a tomee-plus-1.6.0.2 with an EAR having a simple MDB EJB, the startup logs spill following error:

      INFO: Configuring Service(id=Default JMS Resource Adapter, type=Resource, provider-id=Default JMS Resource Adapter)
      28 Apr, 2016 7:13:58 PM org.apache.openejb.config.ConfigurationFactory configureService
      INFO: Configuring Service(id=Default Unmanaged JDBC Database, type=Resource, provider-id=Default Unmanaged JDBC Database)
      28 Apr, 2016 7:13:58 PM org.apache.openejb.assembler.classic.Assembler createRecipe
      INFO: Creating Resource(id=Default Unmanaged JDBC Database)
      28 Apr, 2016 7:13:58 PM org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource readOnly
      INFO: Disabling testOnBorrow since no validation query is provided
      28 Apr, 2016 7:13:58 PM org.apache.openejb.assembler.classic.Assembler createRecipe
      INFO: Creating Resource(id=Default JMS Resource Adapter)
      28 Apr, 2016 7:13:58 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker
      INFO: ActiveMQ5Factory creating broker
      28 Apr, 2016 7:13:58 PM org.apache.openejb.resource.activemq.ActiveMQResourceAdapter createInternalBroker
      SEVERE: Failed to start ActiveMQ
      java.lang.Exception: ActiveMQFactory.createBroker.InvocationTargetException
      at org.apache.openejb.resource.activemq.ActiveMQFactory.createBroker(ActiveMQFactory.java:127)
      at org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.createInternalBroker(ActiveMQResourceAdapter.java:130)
      at org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:120)
      at org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2184)
      at org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:431)
      at org.apache.openejb.config.AutoConfig.installResource(AutoConfig.java:2074)
      at org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1926)
      at org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1869)
      at org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1109)
      at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:844)
      at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:193)
      at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
      at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
      at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1179)
      at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
      at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
      at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.openejb.resource.activemq.ActiveMQFactory.createBroker(ActiveMQFactory.java:121)
      ... 30 more
      Caused by: java.io.IOException: Failed to bind to server socket: tcp://localhost:61616 due to: java.net.BindException: Address already in use: JVM_Bind
      at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
      at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133)
      at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:56)
      at org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40)
      at org.apache.activemq.broker.BrokerService.createTransportConnector(BrokerService.java:2294)
      at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:289)
      at org.apache.activemq.broker.DefaultBrokerFactory.createBroker(DefaultBrokerFactory.java:63)
      at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
      at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
      at org.apache.openejb.resource.activemq.ActiveMQ5Factory.createBroker(ActiveMQ5Factory.java:62)
      ... 35 more
      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:383)
      at java.net.ServerSocket.bind(ServerSocket.java:328)
      at java.net.ServerSocket.<init>(ServerSocket.java:194)
      at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:170)
      at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:130)
      ... 43 more
      28 Apr, 2016 7:13:58 PM org.apache.openejb.assembler.classic.Assembler createRecipe
      INFO: Creating Container(id=Default MDB Container)

        Attachments

          Activity

            People

            • Assignee:
              romain.manni-bucau Romain Manni-Bucau
              Reporter:
              sanketdaru Sanket Daru
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: