You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Andy Gumbrecht (JIRA)" <ji...@apache.org> on 2013/10/02 20:59:47 UTC

[jira] [Issue Comment Deleted] (TOMEE-1052) SEVERE: Failed to start ActiveMQ -- when TomEE is configured to use external activemq broker

     [ https://issues.apache.org/jira/browse/TOMEE-1052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Gumbrecht updated TOMEE-1052:
----------------------------------

    Comment: was deleted

(was: Just for a quick check - Can you look at the config using something like notepad++ and switch on symbols view to check that there is no space or hidden character at the end of the line:

BrokerXmlConfig = )

> SEVERE: Failed to start ActiveMQ -- when TomEE is configured to use external activemq broker
> --------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-1052
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1052
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.2
>         Environment: Windows7 using Java 1.6
>            Reporter: Ramesh Vishwanatham
>
> I have configure Apache TomEE 1.5.2 to use external ActiveMQ Broker by changing tomee.xml file, I have followed details mentioned in url: http://tomee.apache.org/jms-resources-and-mdb-container.html
> Below is my Resource elements in tomee.xml:
> <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
> 	 <!-- BrokerXmlConfig = broker:(tcp://localhost:61616) -->
> 	  	BrokerXmlConfig = 
> 	  ServerUrl = tcp://localhost:61616
> 	</Resource>
> When I start TomEE app server (I am starting inside eclipse) I get below Exception in eclipse console:
> INFO: Creating Resource(id=MyJmsResourceAdapter)
> Oct 1, 2013 9:27:49 PM org.apache.openejb.resource.activemq.ActiveMQResourceAdapter start
> SEVERE: Failed to start ActiveMQ
> java.lang.NullPointerException
> 	at org.apache.openejb.util.URLs.uri(URLs.java:105)
> 	at org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:126)
> 	at org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1847)
> 	at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:434)
> 	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:353)
> 	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:147)
> 	at org.apache.openejb.OpenEJB.init(OpenEJB.java:292)
> 	at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:233)
> 	at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:130)
> 	at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> 	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
> 	at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
> 	at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
> 	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.catalina.startup.Bootstrap.load(Bootstrap.java:281)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
> It does connect to external ActiveMQ broker and every thing works fine. Only thing above exception is a unwanted at begin of TomEE startup and I am hoping to get a solution for this issue.
> Thanks
> Ramesh Vishwanatham



--
This message was sent by Atlassian JIRA
(v6.1#6144)