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

SEVERE: Failed to start ActiveMQ -- when TomEE is configured to use external activemq broker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.5.2
    • 1.5.2, 1.6.0
    • None
    • None
    • Windows7 using Java 1.6

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            rvishwanatham Ramesh Vishwanatham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: