日期:2014-05-18  浏览次数:20597 次

activeMQ 请求AjaxServlet 返回500
/**/amq?timeout=10 这个请求在我自己本机测试是可以的,到Linux服务器上就返回500



<script type="text/javascript" src="../amq/amq.js"></script>
<script type="text/javascript" src="../js/amq/amq_jquery_adapter.js"></script>
<script type="text/javascript">
amq.uri = '../amq';
</script>
<script type="text/javascript" src="../js/amq/amqAlarm_map.js"></script>
<script>



<context-param>
<param-name>org.apache.activemq.brokerURL</param-name>
<param-value>tcp://localhost:61616</param-value>
</context-param>

<servlet>
<servlet-name>AjaxServlet</servlet-name>
<servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>AjaxServlet</servlet-name>
<url-pattern>/amq/*</url-pattern>
</servlet-mapping>



------解决方案--------------------
linux下不认../..