2

有没有办法将 ActiveMQ Ajax servlet 与 Tomee 一起使用?

该文档页面暗示它“正常工作”:http ://activemq.apache.org/tomee.html

但是,在其他地方,很明显 servlet 依赖于 Jetty:http ://activemq.2283324.n4.nabble.com/AjaxServlet-on-Tomcat-td3601798.html 。请注意,用户 Hexaplus 说他/她通过包含 Jetty 库来使其工作。

按照 Hexaplus 的指示,我没有成功;我收到以下错误堆栈跟踪

 SEVERE: Servlet.service() for servlet [AjaxServlet] in context with path [/myapp] threw exception

java.lang.IllegalStateException: Not supported.
    at org.apache.catalina.connector.Request.startAsync(Request.java:1673)
    at org.apache.catalina.connector.Request.startAsync(Request.java:1666)
    at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1023)
    at org.eclipse.jetty.continuation.Servlet3Continuation.suspend(Servlet3Continuation.java:202)
    at org.apache.activemq.web.MessageListenerServlet.doMessages(MessageListenerServlet.java:326)
    at org.apache.activemq.web.MessageListenerServlet.doGet(MessageListenerServlet.java:246)
    at org.apache.activemq.web.AjaxServlet.doGet(AjaxServlet.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

其他人报告同样的问题,例如:(不能发布超过 2 个链接)

http://mail-archives.apache.org/mod_mbox/activemq-users/201302.mbox/%3C1359730513047-4662633.post@n4.nabble.com%3E
4

0 回答 0