有没有办法在Tomee中使用ActiveMQ Ajax servlet?

时间:2013-07-08 14:40:36

标签: ajax jms tomcat7 activemq apache-tomee

有没有办法将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的指示取得成功;我得到以下错误stacktrace

 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

0 个答案:

没有答案