You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Sanket Daru (JIRA)" <ji...@apache.org> on 2016/04/29 06:28:12 UTC

[jira] [Comment Edited] (TOMEE-1788) TomEE fails to start embedded ActiveMQ

    [ https://issues.apache.org/jira/browse/TOMEE-1788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15263394#comment-15263394 ] 

Sanket Daru edited comment on TOMEE-1788 at 4/29/16 4:27 AM:
-------------------------------------------------------------

Hi Romain,

I wish it were that simple. I already listed netstat and checked ports in
use and did quite a lot of analysis of the issue before I took to this JIRA.

The strange thing is that my named adapter/broker starts fine and then down
the line in logs I see this stack-trace complaining about internal broker
not starting fine.

It would be great if you could comment what exactly is this "Creating
Resource(id=Default JMS Resource Adapter)" and why is it needed? In my code
I don't have any AMQ libraries. And this makes me really wonder what
exactly is going wrong!?

Any pointers from you are highly appreciated.

Regards,
Sanket.

On Thursday 28 April 2016, Romain Manni-Bucau (JIRA) <ji...@apache.org>



-- 




was (Author: sanketdaru):
Hi Romain,

I wish it were that simple. I already listed netstat and checked ports in
use and did quite a lot of analysis of the issue before I took to this JIRA.

The strange thing is that my named adapter/broker starts fine and then down
the line in logs I see this stack-trace complaining about internal broker
not starting fine.

It would be great if you could comment what exactly is this "Creating
Resource(id=Default JMS Resource Adapter)" and why is it needed? In my code
I don't have any AMQ libraries. And this makes me really wonder what
exactly is going wrong!?

Any pointers from you are highly appreciated.

Regards,
Sanket.

On Thursday 28 April 2016, Romain Manni-Bucau (JIRA) <ji...@apache.org>



-- 


Thanks & Regards,
Sanket Daru
+91-9503-288-480
sanketdaru@gmail.com


> TomEE fails to start embedded ActiveMQ
> --------------------------------------
>
>                 Key: TOMEE-1788
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1788
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>            Reporter: Sanket Daru
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.0-M4
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)