Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13685

Add activemq-http transport to Fuse on EAP installation

XMLWordPrintable

    • QE Approved
    • 2021-M1
    • % %
    • +
    • +

      When trying to use "activemq-http" on custom project

      <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-http</artifactId>
      <version>${activemq.version}</version>
      <exclusions>
      <exclusion>
      <groupId>org.eclipse.jetty.aggregate</groupId>
      <artifactId>jetty-all</artifactId>
      </exclusion>
      </exclusions>
      </dependency>

      It fails with this exception:

      org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [http]
      ...
      Caused by: javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [http]
      ...
      Caused by: java.lang.ClassCastException: org.apache.activemq.transport.http.HttpTransportFactory cannot be cast to org.apache.activemq.transport.TransportFactory

      "activemq-http" is not included in the Fuse dependencies, and it seems to be some conflict between activemq-http libraries in WAR and module "org.apache.activemq" in Fuse

      NOTE: "jetty-all" dependencies was excluded from activemq-http dependency, because of bug: https://issues.apache.org/jira/browse/AMQ-7358

      If "jetty-all" dependencies are not excluded, this error appears on EAP log:
      java.lang.RuntimeException: javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable

            tdiesler@redhat.com Thomas Diesler
            rhn-support-anarvaez Alfredo Narvaez
            Federico Mariani Federico Mariani
            Tomas Turek, Tomas Veskrna
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: