Details

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

      Description

      I'd like to be able to run ActiveMQ 5.4-SNAPSHOT can run in Geronimo 2.2.1. AMQ 5.4 contains some fixes that it would be nice to pick up.

      Will use this Jira to track the associated changes.

      1. amq54.patch
        9 kB
        Kevan Miller

        Activity

        Hide
        Kevan Miller added a comment -

        This builds. Server starts, but testsuite fails. Also seeing the JMS MDB sample fail with the following:

        javax.naming.NameNotFoundException: comp
        at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:167)
        at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:619)
        at org.apache.xbean.naming.context.AbstractContext.lookupFinalContext(AbstractContext.java:196)
        at org.apache.xbean.naming.context.AbstractContext.addDeepBinding(AbstractContext.java:241)
        at org.apache.xbean.naming.context.AbstractContext.bind(AbstractContext.java:660)
        at org.apache.xbean.naming.context.AbstractContext.bind(AbstractContext.java:651)
        at org.apache.openejb.core.mdb.MdbInstanceFactory.constructBean(MdbInstanceFactory.java:188)
        at org.apache.openejb.core.mdb.MdbInstanceFactory.createInstance(MdbInstanceFactory.java:112)
        at org.apache.openejb.core.mdb.EndpointHandler.<init>(EndpointHandler.java:79)
        at org.apache.openejb.core.mdb.EndpointFactory.createEndpoint(EndpointFactory.java:67)
        at org.apache.activemq.ra.ServerSessionPoolImpl.createEndpoint(ServerSessionPoolImpl.java:92)
        at org.apache.activemq.ra.ServerSessionPoolImpl.createServerSessionImpl(ServerSessionPoolImpl.java:76)
        at org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerSessionPoolImpl.java:116)
        at org.apache.activemq.ActiveMQConnectionConsumer.dispatch(ActiveMQConnectionConsumer.java:129)
        at org.apache.activemq.ActiveMQConnection$2.processMessageDispatch(ActiveMQConnection.java:1707)
        at org.apache.activemq.command.MessageDispatch.visit(MessageDispatch.java:108)
        at org.apache.activemq.ActiveMQConnection.onCommand(ActiveMQConnection.java:1688)
        at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
        at org.apache.activemq.transport.fanout.FanoutTransport.transportListenerOnCommand(FanoutTransport.java:581)
        at org.apache.activemq.transport.fanout.FanoutTransport$FanoutTransportHandler.onCommand(FanoutTransport.java:127)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:217)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:201)
        at java.lang.Thread.run(Thread.java:637)

        Show
        Kevan Miller added a comment - This builds. Server starts, but testsuite fails. Also seeing the JMS MDB sample fail with the following: javax.naming.NameNotFoundException: comp at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:167) at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:619) at org.apache.xbean.naming.context.AbstractContext.lookupFinalContext(AbstractContext.java:196) at org.apache.xbean.naming.context.AbstractContext.addDeepBinding(AbstractContext.java:241) at org.apache.xbean.naming.context.AbstractContext.bind(AbstractContext.java:660) at org.apache.xbean.naming.context.AbstractContext.bind(AbstractContext.java:651) at org.apache.openejb.core.mdb.MdbInstanceFactory.constructBean(MdbInstanceFactory.java:188) at org.apache.openejb.core.mdb.MdbInstanceFactory.createInstance(MdbInstanceFactory.java:112) at org.apache.openejb.core.mdb.EndpointHandler.<init>(EndpointHandler.java:79) at org.apache.openejb.core.mdb.EndpointFactory.createEndpoint(EndpointFactory.java:67) at org.apache.activemq.ra.ServerSessionPoolImpl.createEndpoint(ServerSessionPoolImpl.java:92) at org.apache.activemq.ra.ServerSessionPoolImpl.createServerSessionImpl(ServerSessionPoolImpl.java:76) at org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerSessionPoolImpl.java:116) at org.apache.activemq.ActiveMQConnectionConsumer.dispatch(ActiveMQConnectionConsumer.java:129) at org.apache.activemq.ActiveMQConnection$2.processMessageDispatch(ActiveMQConnection.java:1707) at org.apache.activemq.command.MessageDispatch.visit(MessageDispatch.java:108) at org.apache.activemq.ActiveMQConnection.onCommand(ActiveMQConnection.java:1688) at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.fanout.FanoutTransport.transportListenerOnCommand(FanoutTransport.java:581) at org.apache.activemq.transport.fanout.FanoutTransport$FanoutTransportHandler.onCommand(FanoutTransport.java:127) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:217) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:201) at java.lang.Thread.run(Thread.java:637)
        Hide
        David Jencks added a comment -

        This is not an activemq problem. Geronimo 2.2 doesn't deal well with url schemes at the start of jndi names. It treats them as part of the first name segment, so java:comp/EJBContext has first name component "java:comp" rather than "comp" as is correct. The geronimo code is assuming everything is bound under java:comp. I suspect that the openejb code you are using is binding comp/EJBContext which would produce this error.

        Openejb trunk has been changed to correctly bind stuff like comp/EJBContext, but this will not work with 2.2. Can you check what is in the openejb version you are using? MDBInstanceFactory line 188.

        Show
        David Jencks added a comment - This is not an activemq problem. Geronimo 2.2 doesn't deal well with url schemes at the start of jndi names. It treats them as part of the first name segment, so java:comp/EJBContext has first name component "java:comp" rather than "comp" as is correct. The geronimo code is assuming everything is bound under java:comp. I suspect that the openejb code you are using is binding comp/EJBContext which would produce this error. Openejb trunk has been changed to correctly bind stuff like comp/EJBContext, but this will not work with 2.2. Can you check what is in the openejb version you are using? MDBInstanceFactory line 188.
        Hide
        Kevan Miller added a comment -

        Thanks. Right. I didn't really think that ActiveMQ was causing this problem. Would assume that it's the change in Spring versions or something unrelated to my changes, entirely...

        Geronimo 2.2 is using OpenEJB 3.1.3-SNAPSHOT and this has been working. So, I'm not sure why my changes would have broken things...

        Show
        Kevan Miller added a comment - Thanks. Right. I didn't really think that ActiveMQ was causing this problem. Would assume that it's the change in Spring versions or something unrelated to my changes, entirely... Geronimo 2.2 is using OpenEJB 3.1.3-SNAPSHOT and this has been working. So, I'm not sure why my changes would have broken things...
        Hide
        Kevan Miller added a comment -

        OK. These problems are caused by an unrelated change to openejb – http://svn.apache.org/viewvc?rev=948999&view=rev

        Show
        Kevan Miller added a comment - OK. These problems are caused by an unrelated change to openejb – http://svn.apache.org/viewvc?rev=948999&view=rev
        Hide
        Shawn Jiang added a comment -

        The patch was applied to 22 branch. Thanks Kevan !

        Show
        Shawn Jiang added a comment - The patch was applied to 22 branch. Thanks Kevan !

          People

          • Assignee:
            Shawn Jiang
            Reporter:
            Kevan Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development