Details
-
Enhancement
-
Resolution: Done
-
Major
-
fuse-7.6-GA
-
None
-
QE Approved
-
2021-M1
-
%
-
+
-
+
Description
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
Attachments
Issue Links
- is related to
-
ENTESB-13807 Add activemq-http version to managed dependencies
- Done